Beispiel #1
0
    def __init__(self, *args, **kwargs):
        kwargs.update(host=cfg.CONF.host, topic=cfg.CONF.central_topic)

        policy.init_policy()

        super(Service, self).__init__(*args, **kwargs)

        self.storage_conn = storage.get_connection(cfg.CONF)
Beispiel #2
0
    def __init__(self, *args, **kwargs):
        kwargs.update(host=cfg.CONF.host, topic=cfg.CONF.central_topic)

        policy.init_policy()

        super(Service, self).__init__(*args, **kwargs)

        self.storage_conn = storage.get_connection(cfg.CONF)
Beispiel #3
0
    def __init__(self, *args, **kwargs):
        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(cfg.CONF)

        # Initialize extensions
        self.handlers = self._init_extensions()

        if self.handlers:
            # Get a rpc connection if needed
            self.rpc_conn = rpc.create_connection()
Beispiel #4
0
    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()
Beispiel #5
0
 def get_storage_driver(self, conf=cfg.CONF):
     connection = storage.get_connection(conf)
     return connection
Beispiel #6
0
 def get_storage_driver(self, conf=cfg.CONF):
     connection = storage.get_connection(conf)
     return connection
Beispiel #7
0
 def get_storage_driver(self):
     connection = storage.get_connection()
     return connection