Daemon

Description

class tpg_256a_pressure_monitor.Daemon.Daemon(config_file: str = None, pid_file_name: str = None, host: str = None, port: int = None, device_config_file: str = None)[source]

Base class of the daemon, derived from Server. The daemon holds pointers to the device driver and the monitor thread, and communicates with them upon message reception.

Attributes

Daemon.device

Device handler.

Daemon.monitor

Monitor thread.

Methods

Daemon.__init__

Initializes the Daemon object.

Daemon.logging

Manages the logging thread.

Daemon.quit

Stops the daemon, called with message ‘quit’.

Daemon.status

TODO

Daemon.tpg_256a

Modifies or checks the status of the TPG 256A device.

Daemon.update_parser

Sets up the message parser.