The ceilometer.openstack.common.service Module

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

class ceilometer.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 ceilometer.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 ceilometer.openstack.common.service.Service(threads=1000)[source]

Bases: object

Service object for binaries running on hosts.

start()[source]
stop()[source]
wait()[source]
class ceilometer.openstack.common.service.ServiceLauncher[source]

Bases: ceilometer.openstack.common.service.Launcher

wait()[source]
class ceilometer.openstack.common.service.ServiceWrapper(service, workers)[source]

Bases: object

exception ceilometer.openstack.common.service.SignalExit(signo, exccode=1)[source]

Bases: exceptions.SystemExit

Previous topic

The ceilometer.openstack.common.rpc.service Module

Next topic

The ceilometer.openstack.common.setup Module

This Page