Esempio n. 1
0
 def __init__(self):
     IService.__init__(self, 'zookeeper')
     self.zk = None
     self.dance = None
     self.funcs = []
     self.master = False
     self.uri = None
Esempio n. 2
0
 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)
Esempio n. 3
0
    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)
Esempio n. 4
0
 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)
Esempio n. 5
0
 def __init__(self, name=None, url=None):
     IService.__init__(self, name)
     self.url = url
     self.engine = None
     self.DBSession = None
Esempio n. 6
0
 def __init__(self):
     IService.__init__(self, "timer")
     self.schedule = sched.scheduler(time.time, time.sleep)
Esempio n. 7
0
 def __init__(self, name, protocol: AProtocol):
     IService.__init__(self, name)
     self.protocol = protocol
     self.container = None
     self.host = None
Esempio n. 8
0
 def __init__(self, name):
     IService.__init__(self, name)
     self.client = None
     self.url = None
     self.db = None