예제 #1
0
 def __init__(self, config, params=None):
     SpeedChecker.__init__(self)
     Receiver.__init__(self, config, params)
     self.request_queue_name = config.config('request_queue')
     self.response_queue_name = config.config('response_queue')
     self.queue_address = config.config('queue_address')
     self.start()
예제 #2
0
파일: node.py 프로젝트: beatific/topology
 def __init__(self, config, params=None):
     SpeedChecker.__init__(self)
     Receiver.__init__(self, config, params)
     self.request_queue_name = config.config('request_queue')
     self.response_queue_name = config.config('response_queue')
     self.queue_address = config.config('queue_address')
     self.start()
예제 #3
0
파일: node.py 프로젝트: beatific/topology
 def __init__(self, config, params=None):
     
     SpeedChecker.__init__(self)
     Receiver.__init__(self, config, params)
     TCPServer.__init__(self, (config.config('ip'), int(config.config('port'))), self.handle, bind_and_activate=False)
     self.request_queue_size =int(config.config('threads'))
     self.server_bind()
     self.server_activate()
     self.start()
예제 #4
0
파일: node.py 프로젝트: beatific/topology
 def __init__(self, config, params=None):
     Receiver.__init__(self, config, params)
     self.data = []
     self.id = config.properties('id')
     
     ds = Datasource()
     for result in  ds.query(LoopbackResult).filter("id='%s'"%self.id).filter("process_status='N'"):
         self.data.append(result)
         
     self.start()
예제 #5
0
    def __init__(self, config, params=None):
        Receiver.__init__(self, config, params)
        self.data = []
        self.id = config.properties('id')

        ds = Datasource()
        for result in ds.query(LoopbackResult).filter(
                "id='%s'" % self.id).filter("process_status='N'"):
            self.data.append(result)

        self.start()
예제 #6
0
    def __init__(self, config, params=None):

        SpeedChecker.__init__(self)
        Receiver.__init__(self, config, params)
        TCPServer.__init__(self,
                           (config.config('ip'), int(config.config('port'))),
                           self.handle,
                           bind_and_activate=False)
        self.request_queue_size = int(config.config('threads'))
        self.server_bind()
        self.server_activate()
        self.start()