Example #1
0
 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')
Example #2
0
 def __init__(self, heartbeat_data):
     SuperThread.__init__(self)
     self._heartbeat_data = heartbeat_data
     self.logger = get_logger('heartbeat')
Example #3
0
 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
Example #4
0
 def __init__(self, heartbeat, config):
     SuperThread.__init__(self)
     self.heartbeat = heartbeat
     self.config = config
     self._listener_queue = Queue.Queue()
     self._events = []