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()
def setUp(self): self.service = check.CheckService() self.service.start() self.result = None self.completed = threading.Event()
def setup_method(self, m): self.service = check.CheckService() self.service.start() self.result = None self.completed = threading.Event()