def collector_service(): service.prepare_service() launcher = os_service.ProcessLauncher() launcher.launch_service(collector.CollectorService(cfg.CONF.host, 'ceilometer.collector'), workers=service.get_workers('collector')) launcher.wait()
def agent_notification(): service.prepare_service() launcher = os_service.ProcessLauncher() launcher.launch_service(notification.NotificationService( cfg.CONF.host, 'ceilometer.agent.notification'), workers=service.get_workers('notification')) launcher.wait()
def collector_service(): service.prepare_service() launcher = os_service.ProcessLauncher() launcher.launch_service( collector.CollectorService(), workers=service.get_workers('collector')) launcher.wait()
def agent_notification(): service.prepare_service() launcher = os_service.ProcessLauncher() launcher.launch_service( notification.NotificationService(), workers=service.get_workers('notification')) launcher.wait()
def __init__(self): super(NotificationHandler, self).__init__() self.event_converter = event_converter.setup_events() self.launcher = os_service.ProcessLauncher()