The openstack_dashboard.openstack.common.service ModuleΒΆ
Generic Node base class for all workers that run on hosts.
- class openstack_dashboard.openstack.common.service.Launcher[source]
Bases: object
Launch one or more services and wait for them to complete.
- launch_service(service)[source]
Load and start the given service.
Parameters: service – The service you would like to start. Returns: None
- static run_service(service)[source]
Start and wait for a service to finish.
Parameters: service – service to run and wait for. Returns: None
- stop()[source]
Stop all services which are currently running.
Returns: None
- wait()[source]
Waits until all services have been stopped, and then returns.
Returns: None
- class openstack_dashboard.openstack.common.service.ProcessLauncher[source]
Bases: object
- launch_service(service, workers=1)[source]
- wait()[source]
Loop waiting on children to die and respawning as necessary.
- class openstack_dashboard.openstack.common.service.Service(threads=1000)[source]
Bases: object
Service object for binaries running on hosts.
- start()[source]
- stop()[source]
- wait()[source]
- class openstack_dashboard.openstack.common.service.ServiceLauncher[source]
Bases: openstack_dashboard.openstack.common.service.Launcher
- wait()[source]
- class openstack_dashboard.openstack.common.service.ServiceWrapper(service, workers)[source]
Bases: object
- exception openstack_dashboard.openstack.common.service.SignalExit(signo, exccode=1)[source]
Bases: exceptions.SystemExit
- openstack_dashboard.openstack.common.service.launch(service, workers=None)[source]