The watcher.common.service Module

The watcher.common.service Module

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

Bases: oslo_service.service.ServiceBase

build_notification_handler(topic_names, endpoints=())[source]
build_topic_handler(topic_name, endpoints=())[source]
check_api_version(ctx)[source]
reset()[source]

Reset a service in case it received a SIGHUP.

start()[source]

Start service.

stop()[source]

Stop service.

wait()[source]

Wait for service to complete.

class watcher.common.service.ServiceHeartbeat(gconfig=None, service_name=None, **kwargs)[source]

Bases: watcher.common.scheduling.BackgroundSchedulerService

add_heartbeat_job()[source]
classmethod get_service_name()[source]
reset()[source]

Reset service.

Called in case service running in daemon mode receives SIGHUP.

send_beat()[source]
start()[source]

Start service.

stop()[source]

Stop service.

wait()[source]

Wait for service to complete.

class watcher.common.service.WSGIService(service_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

Creative Commons Attribution 3.0 License

Except where otherwise noted, this document is licensed under Creative Commons Attribution 3.0 License. See all OpenStack Legal Documents.