Пример #1
0
 def __init__(self, cmd_parser, interface, response_wait=.5):
     super(CmdServer, self).__init__()
     self._stopped = True
     self._stop = Event()
     self._cmd_parser = cmd_parser
     self._response_wait = response_wait
     self._interface = interface
     self._logger = logger.getChild(interface.name)
Пример #2
0
 def __init__(self, period, twitch, get_sublist):
     super(Checker, self).__init__()
     self._stop = Event()
     self._polling = Event()
     self._period = period
     self._twitch = twitch
     self._get_sublist = get_sublist
     self._status_lock = Lock()
     self._logger = logger.getChild(self.__class__.__name__)
Пример #3
0
 def __init__(self, period, twitch, get_sublist):
     super(Checker, self).__init__()
     self._stop = Event()
     self._polling = Event()
     self._period = period
     self._twitch = twitch
     self._get_sublist = get_sublist
     self._status_lock = Lock()
     self._logger = logger.getChild(self.__class__.__name__)