def __init__(self): IService.__init__(self, 'zookeeper') self.zk = None self.dance = None self.funcs = [] self.master = False self.uri = None
def __init__(self): IService.__init__(self, 'distributor') self.distributes = {} self.observer = Observer() watch = WatchHandler(self) watch.on_modified(None) if os.path.exists('config/distributor'): self.observer.schedule(watch, 'config/distributor', recursive=True)
def __init__(self): IService.__init__(self, 'router') self.dance = None watch = WatchHandler(self) watch.on_modified(None) self.observer = Observer() if os.path.exists('config/iotnn'): self.observer.schedule(watch, 'config/iotnn', recursive=True)
def __init__(self): IService.__init__(self, 'process') self.hclass = {} self.dance = None self.handlers = {} self.turnouts = {} self.application = Application() self.server = None self.observer = Observer() watch = WatchHandler(self) watch.on_modified(None) if os.path.exists('config/processor'): self.observer.schedule(watch, 'config/processor', recursive=True)
def __init__(self, name=None, url=None): IService.__init__(self, name) self.url = url self.engine = None self.DBSession = None
def __init__(self): IService.__init__(self, "timer") self.schedule = sched.scheduler(time.time, time.sleep)
def __init__(self, name, protocol: AProtocol): IService.__init__(self, name) self.protocol = protocol self.container = None self.host = None
def __init__(self, name): IService.__init__(self, name) self.client = None self.url = None self.db = None