예제 #1
0
class RSpecManager(RSpecManagerBase):
    def __init__(self):
        self.__crafter = CrafterManager()
        self.__parser = ParserManager()

    def compose_advertisement(self, resources):
        return self.__crafter.get_advertisement(resources)

    def compose_manifest(self, slivers):
        return self.__crafter.manifest_slivers(slivers)

    def parse_request(self, request_rspec):
        return self.__parser.parse_request_rspec(request_rspec)
예제 #2
0
파일: manager.py 프로젝트: HalasNet/felix
class RSpecManager(RSpecManagerBase):
    
    def __init__(self):
        self.__crafter = CrafterManager()
        self.__parser = ParserManager()
    
    def compose_advertisement(self, resources):
        return self.__crafter.get_advertisement(resources)
    
    def compose_manifest(self, slivers):
        return self.__crafter.manifest_slivers(slivers)

    def parse_request(self, request_rspec):
        return self.__parser.parse_request_rspec(request_rspec)
예제 #3
0
파일: manager.py 프로젝트: ict-felix/stack
class RSpecManager(RSpecManagerBase):
    
    def __init__(self):
        self.__crafter = CrafterManager()
        self.__parser = ParserManager()
    
    def compose_advertisement(self, resources):
        import logging
        logger = logging.getLogger("ZabbixHelper")
        logger.debug("compose_advertisement start")
        return self.__crafter.get_advertisement(resources)
    
    def compose_manifest(self, slivers):
        return self.__crafter.manifest_slivers(slivers)

    def parse_request(self, request_rspec):
        return self.__parser.parse_request_rspec(request_rspec)
예제 #4
0
 def __init__(self):
     self.__crafter = CrafterManager()
     self.__parser = ParserManager()
예제 #5
0
파일: manager.py 프로젝트: HalasNet/felix
 def __init__(self):
     self.__crafter = CrafterManager()
     self.__parser = ParserManager()