def __init__(
         self, warebox, output_event_queue,
         start_suspended=True):
     SuspendableThread.__init__(
         self, start_suspended, name=self.__class__.__name__)
     self._logger = logging.getLogger("FR." + self.__class__.__name__)
     self._warebox = warebox
     self._output_event_queue = output_event_queue
     self._ready_to_scan = threading.Event()
     self._scan_interval = 5
     self._must_die = threading.Event()
     self.reset()
Пример #2
0
 def __init__(
         self, warebox, output_event_queue,
         start_suspended=True):
     SuspendableThread.__init__(
         self, start_suspended, name=self.__class__.__name__)
     self._logger = logging.getLogger("FR." + self.__class__.__name__)
     self._warebox = warebox
     self._output_event_queue = output_event_queue
     self._ready_to_scan = threading.Event()
     self._scan_interval = 5
     self._must_die = threading.Event()
     self.reset()
    def __init__(
            self, session_queue, input_message_queue, output_message_queue,
            start_suspended=False):

        SuspendableThread.__init__(
            self, start_suspended, name=self.__class__.__name__)
        self.logger = logging.getLogger("FR." + self.__class__.__name__)
        self._session_queue = session_queue
        self.input_message_queue = input_message_queue
        self.output_message_queue = output_message_queue
        self.interval = threading.Event()
        self.must_die = threading.Event()
        self.keepalive_id = 0
        self.timeout_time = 60