Пример #1
0
 def __init__(self, interval):
     self._monitors = {}
     self._interval = interval
     # NOTE: This must be used in asynchronous mode to prevent blocking of
     # the checker event loop thread.
     self.onDomainStateChange = misc.Event(
         "Storage.DomainMonitor.onDomainStateChange", sync=False)
     self._checker = check.CheckService()
     self._checker.start()
Пример #2
0
 def setUp(self):
     self.service = check.CheckService()
     self.service.start()
     self.result = None
     self.completed = threading.Event()
Пример #3
0
 def setup_method(self, m):
     self.service = check.CheckService()
     self.service.start()
     self.result = None
     self.completed = threading.Event()