Exemple #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)
Exemple #2
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)
Exemple #3
0
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)
Exemple #4
0
 def __init__(self):
     self.__crafter = CrafterManager()
     self.__parser = ParserManager()
Exemple #5
0
 def __init__(self):
     self.__crafter = CrafterManager()
     self.__parser = ParserManager()