示例#1
0
 def _init_context(self, context):
     self.context = context or Context.instance()
     self.loop = ioloop.IOLoop.current()
     self.ctrl = Controller(self.endpoint, self.multicast_endpoint,
                            self.context, self.loop, self, self.check_delay)
示例#2
0
文件: client.py 项目: yegorich/circus
 def _init_context(self, context):
     self.context = context or Context.instance()
示例#3
0
 def _init_context(self, context):
     self.context = context or Context.instance()
     self.loop = ioloop.IOLoop.instance()
     self.ctrl = Controller(self.endpoint, self.multicast_endpoint,
                            self.context, self.loop, self, self.check_delay)