pyrolab.manager.ProcessManager

Contents

pyrolab.manager.ProcessManager#

class ProcessManager[source]#

Bases: object

A manager class for running a set of PyroLab processes.

ProcessManager is a singleton. Access the global object by calling instance(). Only the main process can access the ProcessManager.

Methods

checkup([continuous])

Checkup the processes.

get_daemon_process_info(daemon)

Return the process group for a daemon.

get_nameserver_process_info(nameserver)

Gets info on a nameserver process.

get_service_process_info(service)

Return the process info for a service.

instance()

Get the singleton instance of the ProcessManager.

launch_daemon(daemon)

Launch a daemon and all its associated services.

launch_nameserver(nameserver)

Launch a nameserver.

reload()

Reload all entities.

shutdown_all()

Shutdown all entities.

start_checkup_timer([duration])

Starts a timer to check up on the processes every n seconds (default 30).

stop_checkup_timer()

Stops the checkup timer.

shutdown_daemon

shutdown_nameserver