예제 #1
0
파일: pool.py 프로젝트: dahlke/eklhad
 def __init__(self, num_workers, ioloop=None, config=None):
     SuperThread.__init__(self)
     self._config = config
     self._num_workers = num_workers
     self._request_queue = Queue.Queue()
     self._ioloop = ioloop or IOLoop.instance()
     self._logger = logging.getLogger('eklhad.pool')
예제 #2
0
파일: heartbeat.py 프로젝트: dahlke/eklhad
 def __init__(self, heartbeat_data):
     SuperThread.__init__(self)
     self._heartbeat_data = heartbeat_data
     self.logger = get_logger('heartbeat')
예제 #3
0
파일: pool.py 프로젝트: dahlke/eklhad
 def __init__(self, ioloop, work_queue, config):
     SuperThread.__init__(self)
     self._config = config
     self._work_queue = work_queue
     self._api = ApiCaller(None, config)
     self._ioloop = ioloop
예제 #4
0
파일: base.py 프로젝트: dahlke/eklhad
 def __init__(self, heartbeat, config):
     SuperThread.__init__(self)
     self.heartbeat = heartbeat
     self.config = config
     self._listener_queue = Queue.Queue()
     self._events = []