RAVE
Lib.rave_pgf_logger.rave_pgf_logger_server Class Reference
Inheritance diagram for Lib.rave_pgf_logger.rave_pgf_logger_server:
Lib.rave_daemon.Daemon

Public Member Functions

 __init__ (self, host=PGF_HOST, port=LOGPORT, pidfile=LOGPIDFILE, stdin='/dev/null', stdout='/dev/null', stderr='/dev/null')
 Constructor.
 
 status (self)
 Determines whether the server is running or not.
 
 run (self)
 Runs the server.
 
- Public Member Functions inherited from Lib.rave_daemon.Daemon
 daemonize (self)
 Do the UNIX double-fork magic, see Stevens' "Advanced Programming in the UNIX Environment" for details (ISBN 0201563177) http://www.erlenstar.demon.co.uk/unix/faq_2.html#SEC16.
 
 delpid (self)
 Deletes the PID file.
 
 start (self)
 Start the daemon.
 
 stop (self)
 Stop the daemon.
 
 restart (self)
 Restart the daemon.
 

Public Attributes

 pidfile = pidfile
 
 stdin = stdin
 
 stderr = stdout
 
 stdout = stderr
 
 host = host
 
 port = port
 
 server = LogRecordSocketReceiver(host=self.host, port=self.port)
 
- Public Attributes inherited from Lib.rave_daemon.Daemon
 stdin = stdin
 
 stdout = stdout
 
 stderr = stderr
 
 pidfile = pidfile
 
 delpid
 

Additional Inherited Members

- Protected Member Functions inherited from Lib.rave_daemon.Daemon
 _isprocessrunning (self, pid)
 Checks if the process with provided pid is running by checking the /proc directory.
 

Constructor & Destructor Documentation

◆ __init__()

Lib.rave_pgf_logger.rave_pgf_logger_server.__init__ ( self,
host = PGF_HOST,
port = LOGPORT,
pidfile = LOGPIDFILE,
stdin = '/dev/null',
stdout = '/dev/null',
stderr = '/dev/null' )

Constructor.

Parameters
hostURI to the host for this server.
portint port number to the host for this server.
pidfilestring file name to which to write the server's PID
stdinstring path to where to direct stdin
stdoutstring path to where to direct stdout
stderrstring path to where to direct stderr

Reimplemented from Lib.rave_daemon.Daemon.

Member Function Documentation

◆ run()

Lib.rave_pgf_logger.rave_pgf_logger_server.run ( self)

Runs the server.

Creates an instance of a LogRecordSocketReceiver and serves it. Note that the start(), stop(), and restart() methods are inherited from Daemon , but you can call fg() to run the server in the foreground, ie. not daemonize, which is useful for debugging.

Reimplemented from Lib.rave_daemon.Daemon.

◆ status()

Lib.rave_pgf_logger.rave_pgf_logger_server.status ( self)

Determines whether the server is running or not.


The documentation for this class was generated from the following file: