RLRP routing
v.0.1.0
|
Classes | |
class | Daemon |
A class used for creating and managing the application daemon. More... | |
class | RoutingDaemon |
Generic routing class. More... | |
Variables | |
string | REDIRECT_TO = routing_logging.PATH_TO_LOGS+"crash_output.log" |
This constant defines a string with an absolute path to the stdout file of the daemon. More... | |
string | PIDFILE_PATH = "/var/run/routing_daemon.pid" |
This constant defines a string with an absolute path to the daemon's pid file. More... | |
ABSOLUTE_PATH = routing_logging.ABSOLUTE_PATH | |
This constant is a string with an absolute path to the program's main directory. More... | |
string | TOPOLOGY_PATH = ABSOLUTE_PATH+"/topology.conf" |
This constant is a string with an absolute path to the file with pre-defined network topology. More... | |
ROUTING_LOG = routing_logging.create_routing_log("routing.log", "root") | |
Contains a reference to routing_logging.LogWrapper object of the main root logger for writing the log messages of the main module. More... | |
routing = RoutingDaemon(PIDFILE_PATH) | |
Main routing daemon object. More... | |
@package Node_init Created on Sep 25, 2014 @author: Dmitrii Dugaev This module is a starting point of the program. It performs two main operations - first, provides methods for correctly daemonizing the application after start, second, provides the main initialization point for all supporting threads and handlers, used by the the program, as well as the de-construction routine after killing the daemon.
Node_init.ABSOLUTE_PATH = routing_logging.ABSOLUTE_PATH |
This constant is a string with an absolute path to the program's main directory.
Node_init.PIDFILE_PATH = "/var/run/routing_daemon.pid" |
This constant defines a string with an absolute path to the daemon's pid file.
Node_init.REDIRECT_TO = routing_logging.PATH_TO_LOGS+"crash_output.log" |
This constant defines a string with an absolute path to the stdout file of the daemon.
In case if the program crashes, the last crash output will be written in this file.
Node_init.routing = RoutingDaemon(PIDFILE_PATH) |
Main routing daemon object.
Node_init.ROUTING_LOG = routing_logging.create_routing_log("routing.log", "root") |
Contains a reference to routing_logging.LogWrapper object of the main root logger for writing the log messages of the main module.
Node_init.TOPOLOGY_PATH = ABSOLUTE_PATH+"/topology.conf" |
This constant is a string with an absolute path to the file with pre-defined network topology.
This file will be used for incoming frames filtering if the "SET_TOPOLOGY_FLAG" in the conf.py configuration file will be set to True.