示例#1
0
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()
示例#2
0
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()
示例#3
0
def collector_service():
    service.prepare_service()
    launcher = os_service.ProcessLauncher()
    launcher.launch_service(
        collector.CollectorService(),
        workers=service.get_workers('collector'))
    launcher.wait()
示例#4
0
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()