예제 #1
0
    def __init__(self, scheduler_driver=None, service_name=None,
                 *args, **kwargs):

        if not scheduler_driver:
            scheduler_driver = CONF.scheduler_driver
        if scheduler_driver in MAPPING:
            msg_args = {
                'old': scheduler_driver,
                'new': MAPPING[scheduler_driver],
            }
            LOG.warning("Scheduler driver path %(old)s is deprecated, "
                        "update your configuration to the new path "
                        "%(new)s", msg_args)
            scheduler_driver = MAPPING[scheduler_driver]

        self.driver = importutils.import_object(scheduler_driver)
        self.message_api = message_api.API()
        super(SchedulerManager, self).__init__(*args, **kwargs)
예제 #2
0
파일: messages.py 프로젝트: stackhpc/manila
 def __init__(self):
     self.message_api = message_api.API()
     super(MessagesController, self).__init__()
예제 #3
0
파일: test_api.py 프로젝트: gregnsk/manila
 def setUp(self):
     super(MessageApiTest, self).setUp()
     self.message_api = message_api.API()
     self.mock_object(self.message_api, 'db')
     self.ctxt = context.RequestContext('admin', 'fakeproject', True)
     self.ctxt.request_id = 'fakerequestid'
예제 #4
0
 def __init__(self, execute, config, **kwargs):
     self.rados_client = kwargs.pop('rados_client')
     self.volname = kwargs.pop('volname')
     self.message_api = message_api.API()
     super(NativeProtocolHelper, self).__init__(execute, config, **kwargs)
예제 #5
0
파일: driver.py 프로젝트: onstring/manila
 def __init__(self, execute, config, **kwargs):
     self.volume_client = kwargs.pop('ceph_vol_client')
     self.message_api = message_api.API()
     super(NativeProtocolHelper, self).__init__(execute, config, **kwargs)
예제 #6
0
 def __init__(self, *args, **kwargs):
     super(FilterScheduler, self).__init__(*args, **kwargs)
     self.cost_function_cache = None
     self.options = scheduler_options.SchedulerOptions()
     self.max_attempts = self._max_attempts()
     self.message_api = message_api.API()