def __init__(self, name): BaseService.__init__(self, name) self._service_manager = ServiceManager("service-manager") # workers each handle one rest endpoint self.event_loop_state = RoundRobinIndexer(2)
def __init__(self, name): BaseService.__init__(self, name) self._service_manager = ServiceManager( "service-manager") # workers each handle one rest endpoint self.event_loop_state = RoundRobinIndexer(2)
def __init__(self, name): scales.init(self, '/service-manager') BaseService.__init__(self, name) self._directory = {} self.started_services = Queue() self._directory_service_proxy = DirectoryService(self._directory)