def __init__(self, *args, **kwargs): manager = backend.get_backend(cfg.CONF['service:agent'].backend_driver) kwargs.update( host=cfg.CONF.host, topic=cfg.CONF.agent_topic, manager=manager ) super(Service, self).__init__(*args, **kwargs)
def __init__(self, *args, **kwargs): manager = backend.get_backend() manager.register_opts(cfg.CONF) kwargs.update( host=cfg.CONF.host, topic=cfg.CONF.agent_topic, manager=manager ) super(Service, self).__init__(*args, **kwargs)
def __init__(self, *args, **kwargs): manager = backend.get_backend(cfg.CONF['service:agent'].backend_driver, central_service=central_api) kwargs.update( host=cfg.CONF.host, topic=cfg.CONF.agent_topic, manager=manager ) super(Service, self).__init__(*args, **kwargs)
def __init__(self, *args, **kwargs): backend_driver = cfg.CONF['service:central'].backend_driver self.backend = backend.get_backend(backend_driver, central_service=self) kwargs.update( host=cfg.CONF.host, topic=cfg.CONF.central_topic, ) policy.init_policy() super(Service, self).__init__(*args, **kwargs) # Get a storage connection self.storage = storage.get_storage() # Get a quota manager instance self.quota = quota.get_quota()
def __init__(self, *args, **kwargs): backend_driver = cfg.CONF['service:central'].backend_driver self.backend = backend.get_backend(backend_driver) kwargs.update( host=cfg.CONF.host, topic=cfg.CONF.central_topic, ) policy.init_policy() super(Service, self).__init__(*args, **kwargs) # Get a storage connection self.storage_conn = storage.get_connection() # Initialize extensions self.handlers = self._init_extensions() if self.handlers: # Get a rpc connection if needed self.rpc_conn = rpc.create_connection()
def get_backend_driver(self): return backend.get_backend()
def get_backend_driver(self): central_service = self.get_central_service() return backend.get_backend(cfg.CONF['service:agent'].backend_driver, central_service=central_service)
def get_backend_driver(self): return backend.get_backend(cfg.CONF['service:agent'].backend_driver)