watcher.common.service module

watcher.common.service module

service None

Bases: oslo_service.service.ServiceBase

Service.build_notification_handler(topic_names, endpoints=())
Service.build_topic_handler(topic_name, endpoints=())
Service.check_api_version(ctx)
Service.reset()

Reset a service in case it received a SIGHUP.

Service.start()

Start service.

Service.stop()

Stop service.

Service.wait()

Wait for service to complete.

service None

Bases: watcher.common.scheduling.BackgroundSchedulerService

ServiceHeartbeat.add_heartbeat_job()
classmethod ServiceHeartbeat.get_service_name()
ServiceHeartbeat.reset()

Reset service.

Called in case service running in daemon mode receives SIGHUP.

ServiceHeartbeat.send_beat()
ServiceHeartbeat.start()

Start service.

ServiceHeartbeat.stop()

Stop service.

ServiceHeartbeat.wait()

Wait for service to complete.

service None

Bases: oslo_service.service.ServiceBase

Provides ability to launch Watcher API from wsgi app.

WSGIService.reset()[source]

Reset server greenpool size to default

WSGIService.start()[source]

Start serving this service using loaded configuration

WSGIService.stop()[source]

Stop serving this API

WSGIService.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.