Beispiel #1
0
    def __init__(self, host, topic, manager=None, context=None):
        super(EngineService, self).__init__()
        self.host = host
        self.topic = topic

        self.scheduler = None
        self.engine_id = None
        self.target = None
        self._rpc_server = None

        bilean_clients.initialise()

        if context is None:
            self.context = bilean_context.get_service_context()
Beispiel #2
0
 def __init__(self):
     self.resource_converter = converter.setup_resources()
     self.cnxt = context.get_service_context(set_project_id=True)
     super(EventsNotificationEndpoint, self).__init__()