Classes |
| class | Process |
Public Member Functions |
| | ModuleManager (EventLoop &eventloop, Rtrmgr &rtrmgr, bool do_restart, bool verbose, const string &xorp_root_dir, const string &xorp_module_dir) |
| | Constructor.
|
|
virtual | ~ModuleManager () |
| | The default destructor.
|
| bool | new_module (const string &module_name, const string &path, string &error_msg) |
| | Create a new module.
|
| int | start_module (const string &module_name, bool do_exec, bool is_verification, XorpCallback1< void, bool >::RefPtr cb) |
| | Start a module.
|
| int | kill_module (const string &module_name, XorpCallback0< void >::RefPtr cb) |
| | Kill a module.
|
| bool | module_is_running (const string &module_name) const |
| | Test whether a module is running.
|
| bool | module_has_started (const string &module_name) const |
| | Test whether a module has been started.
|
|
void | shutdown () |
| | Shutdown the module manager.
|
| bool | is_shutdown_completed () const |
| | Test whether the shutdown has been completed.
|
| void | module_status_changed (const string &module_name, Module::ModuleStatus old_status, Module::ModuleStatus new_status) |
| | Change the status of a module.
|
| list< string > | get_module_names () const |
| | Get the module names.
|
| list< Module * > | find_running_modules_by_path (const string &expath) |
| | Get the running modules that match an executional path.
|
| int | execute_process (const string &expath, string &error_msg) |
| | Execute a process.
|
| void | process_exited (const string &expath, bool success, bool is_signal_terminated, int term_signal, bool is_coredumped) |
| | A method called when a process has exited.
|
| void | process_stopped (const string &expath, int stop_signal) |
| | A method called when a process has been stopped.
|
| ModuleManager::Process * | find_process_by_path (const string &expath) |
| | Find a process by its expanded path.
|
| const string & | xorp_root_dir () const |
| | Get the XORP root directory.
|
| const string & | xorp_module_dir () const |
| | Get the XORP module directory.
|
| MasterConfigTree * | master_config_tree () const |
| | Get the master configuration tree.
|
| void | set_master_config_tree (MasterConfigTree *v) |
| | Set the master configuration tree.
|
| bool | do_restart () const |
| | Test if processes that have failed should be restarted.
|
Private Member Functions |
|
void | module_shutdown_cb (string module_name) |
|
int | expand_execution_path (const string &path, string &expath, string &error_msg) |
Private Attributes |
|
Rtrmgr & | _rtrmgr |
|
MasterConfigTree * | _master_config_tree |
|
map< string, Process * > | _expath2process |
|
bool | _do_restart |
|
bool | _verbose |
|
string | _xorp_root_dir |
|
string | _xorp_module_dir |