def __init__(self, *args, **kwargs): super(ZenEventD, self).__init__(*args, **kwargs) EventPipelineProcessor.SYNC_EVERY_EVENT = self.options.syncEveryEvent self._heartbeatSender = QueueHeartbeatSender('localhost', 'zeneventd', self.options.maintenancecycle *3) self._maintenanceCycle = MaintenanceCycle(self.options.maintenancecycle, self._heartbeatSender) objectEventNotify(DaemonCreatedEvent(self))
def __init__(self, *args, **kwargs): super(ZenEventD, self).__init__(*args, **kwargs) EventPipelineProcessor.SYNC_EVERY_EVENT = self.options.syncEveryEvent EventPipelineProcessor.PROCESS_EVENT_TIMEOUT = self.options.process_event_timeout self._heartbeatSender = QueueHeartbeatSender( 'localhost', 'zeneventd', self.options.heartbeatTimeout) self._maintenanceCycle = MaintenanceCycle( self.options.maintenancecycle, self._heartbeatSender) objectEventNotify(DaemonCreatedEvent(self)) config = ZenEventDConfig(self.options) provideUtility(config, IDaemonConfig, 'zeneventd_config')
def __init__(self): super(ZenActionD, self).__init__() self._consumer = None self._workers = ProcessWorkers(self.options.workers - 1, exec_worker, "zenactiond worker") self._heartbeatSender = QueueHeartbeatSender( 'localhost', 'zenactiond', self.options.heartbeatTimeout) self._maintenanceCycle = MaintenanceCycle( self.options.maintenancecycle, self._heartbeatSender) self._callHomeCycler = CallHomeCycler(self.dmd) self._schedule = Schedule(self.options, self.dmd) self._schedule.sendEvent = self.dmd.ZenEventManager.sendEvent self._schedule.monitor = self.options.monitor