The synaps.service Module

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

class Launcher

Bases: object

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

launch_server(server)

Load and start the given server.

Parameters:server – The server you would like to start.
Returns:None
static run_server(server)

Start and wait for a server to finish.

Parameters:service – Server 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 WSGIService(name, loader=None)

Bases: object

Provides ability to launch API from a ‘paste’ configuration.

start()

Start serving this service using loaded configuration.

Also, retrieve updated port number in case ‘0’ was passed in, which indicates a random port should be used.

Returns:None
stop()

Stop serving this API.

Returns:None
wait()

Wait for the service to stop serving this API.

Returns:None
serve(*servers)
wait()

Previous topic

The synaps.openstack.common.timeutils Module

Next topic

The synaps.utils Module

This Page