rsbhostmonitor.executable

Provides executable functions.

Code author: jwienke

Functions

configure_logging(file_or_flag) Configure the python logging system.
generate_argument_parser() Generates an :module:`argparse` parser for the adapter executable.
main() Main method for the host monitor executable.

Classes

HostInformation(**kwargs)
MonitoringThread(cycle_time, informer[, ...])
rsbhostmonitor.executable.configure_logging(file_or_flag)[source]

Configure the python logging system.

If the provided argument is a file instance, try to use the pointed to file as a configuration for the logging system. Otherwise, if the given argument evaluates to :class:True:, use a default configuration with many logging messages. If everything fails, just log starting from the warning level.

Parameters:file_or_flag (file or bool) – either a configuration file pointed by a file object instance or something that evaluates to bool.
rsbhostmonitor.executable.generate_argument_parser()[source]

Generates an :module:`argparse` parser for the adapter executable.

Returns:configured parser instance with all arguments
Return type:argparse.ArgumentParser
rsbhostmonitor.executable.main()[source]

Main method for the host monitor executable.

Includes all the necessary work to run as a command line application.