def configure(self, conf): """ Configure rendezvous server """ # # Ensure that the rootdir is empty, but do that on # a copy of the original settings, just in case any # other module needs the original setting. # conf = conf.copy() conf["http.server.rootdir"] = "" ServerHTTP.configure(self, conf)
def __init__(self, poller): ServerHTTP.__init__(self, poller) self._dispatch = { "/api": self._api, "/api/": self._api, "/api/results": api_results.api_results, "/api/config": config_api.config_api, "/api/debug": self._api_debug, "/api/index": self._api_index, "/api/exit": self._api_exit, "/api/log": log_api.log_api, "/api/runner": runner_api.runner_api, "/api/state": self._api_state, "/api/version": self._api_version, }
def __init__(self, poller): ServerHTTP.__init__(self, poller) self._dispatch = { "/api": self._api, "/api/": self._api, "/api/bittorrent": self._api_bittorrent, "/api/config": self._api_config, "/api/configlabels": self._api_configlabels, "/api/debug": self._api_debug, "/api/index": self._api_index, "/api/exit": self._api_exit, "/api/log": self._api_log, "/api/speedtest": self._api_speedtest, "/api/state": self._api_state, "/api/version": self._api_version, }
def __init__(self, poller): ''' Initialize the negotiator ''' ServerHTTP.__init__(self, poller) self.queue = collections.deque() self.modules = {} self.known = set()
def configure(self, conf, measurer=None): conf["http.server.rootdir"] = "" ServerHTTP.configure(self, conf, measurer)
def __init__(self, poller): ServerHTTP.__init__(self, poller) self.negotiator = NEGOTIATOR
def configure(self, conf): conf["http.server.rootdir"] = "" ServerHTTP.configure(self, conf)
def __init__(self, poller): ServerHTTP.__init__(self, poller) self.begin_test = 0 POLLER.sched(3, self._speedtest_check_timeout) self.test_server = ServerTest(poller)