This Page

The quantum.openstack.common.service Module

Generic Node base class for all workers that run on hosts.

class quantum.openstack.common.service.Launcher

Bases: object

Launch one or more services and wait for them to complete.

launch_service(service)

Load and start the given service.

Parameters:service – The service you would like to start.
Returns:None
static run_service(service)

Start and wait for a service to finish.

Parameters:service – service to run and wait for.
Returns:None
stop()

Stop all services which are currently running.

Returns:None
wait()

Waits until all services have been stopped, and then returns.

Returns:None
class quantum.openstack.common.service.ProcessLauncher

Bases: object

launch_service(service, workers=1)
wait()

Loop waiting on children to die and respawning as necessary

class quantum.openstack.common.service.Service(threads=1000)

Bases: object

Service object for binaries running on hosts.

start()
stop()
wait()
class quantum.openstack.common.service.ServiceLauncher

Bases: quantum.openstack.common.service.Launcher

wait()
class quantum.openstack.common.service.ServiceWrapper(service, workers)

Bases: object

exception quantum.openstack.common.service.SignalExit(signo, exccode=1)

Bases: exceptions.SystemExit

quantum.openstack.common.service.launch(service, workers=None)