The watcher.common.service Module

class watcher.common.service.Service(manager_class)[source]

Bases: oslo_service.service.ServiceBase, watcher.common.messaging.events.event_dispatcher.EventDispatcher

build_notification_handler(topic_names, endpoints=())[source]
build_topic_handler(topic_name, endpoints=())[source]
check_api_version(context)[source]
get_version()[source]
publish_control(event, payload)[source]
publish_status_event(event, payload, request_id=None)[source]
reset()[source]

Reset a service in case it received a SIGHUP.

response(evt, ctx, message)[source]
start()[source]
stop()[source]
wait()[source]

Wait for service to complete.

class watcher.common.service.WSGIService(name, use_ssl=False)[source]

Bases: oslo_service.service.ServiceBase

Provides ability to launch Watcher API from wsgi app.

reset()[source]

Reset server greenpool size to default

start()[source]

Start serving this service using loaded configuration

stop()[source]

Stop serving this API

wait()[source]

Wait for the service to stop serving this API

Previous topic

The watcher.common.scheduling Module

Next topic

The watcher.common.utils Module

Project Source

This Page