Ejemplo n.º 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)
Ejemplo n.º 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)
Ejemplo n.º 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()
Ejemplo n.º 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()
Ejemplo n.º 5
0
 def get_storage_driver(self, conf=cfg.CONF):
     connection = storage.get_connection(conf)
     return connection
Ejemplo n.º 6
0
 def get_storage_driver(self, conf=cfg.CONF):
     connection = storage.get_connection(conf)
     return connection
Ejemplo n.º 7
0
 def get_storage_driver(self):
     connection = storage.get_connection()
     return connection