예제 #1
0
 def __init__(self, systems, cfg):
     self.cfg = cfg
     self.event_queue = Queue()
     self.rpc_client = rpc_client.EngineClient()
     self.throttle_threshold = self.cfg.snmp.throttle_threshold
     for i in systems:
         self._add_system(i)
예제 #2
0
    def __init__(self, *args, **kwargs):
        LOG.debug(_('SubcloudAuditManager initialization...'))

        super(SubcloudAuditManager,
              self).__init__(service_name="subcloud_audit_manager")
        self.context = context.get_admin_context()
        self.dcorch_rpc_client = dcorch_rpc_client.EngineClient()
        self.fm_api = fm_api.FaultAPIs()
        self.subcloud_manager = kwargs['subcloud_manager']
 def __init__(self, *args, **kwargs):
     super(SubcloudAlarmController, self).__init__(*args, **kwargs)
     self.dcorch_rpc_client = dcorch_rpc_client.EngineClient()
 def __init__(self, *args, **kwargs):
     super(SubcloudController, self).__init__(*args, **kwargs)
     self.rpc_client = rpc_client.EngineClient()
 def __init__(self, app, conf):
     super(APIController, self).__init__(app)
     self.ctxt = k_context.get_admin_context()
     self._default_dispatcher = APIDispatcher(app)
     self.rpc_client = rpc_client.EngineClient()
     self.response_hander_map = {}