rsbperfmondbadapter.executable¶
Provides executable functions.
Code author: jwienke
Functions
configure_logging (file_or_flag) |
Configure the python logging system. |
generate_argument_parser () |
Generates an argparse parser for the adapter executable. |
run () |
Main method for the adapter executable. |
Classes
-
rsbperfmondbadapter.executable.
configure_logging
(file_or_flag)¶ 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
.
-
rsbperfmondbadapter.executable.
generate_argument_parser
()¶ Generates an
argparse
parser for the adapter executable.Returns: configured parser instance with all arguments Return type: argparse.ArgumentParser
-
rsbperfmondbadapter.executable.
run
()¶ Main method for the adapter executable.
Includes all the necessary work to run as a command line application.