class ModuleManager


 
LOGO
 Annotated List  Files  Globals  Hierarchy  Index  Top

Public Methods


Detailed Description

 ModuleManager (EventLoop& eventloop, Rtrmgr* rtrmgr, bool do_restart, bool verbose, const string& xorp_root_dir)

ModuleManager

 ~ModuleManager ()

~ModuleManager

bool  new_module (const string& module_name, const string& path)

new_module

int  start_module (const string& module_name, bool do_exec, XorpCallback1<void, bool>::RefPtr cb)

start_module

int  kill_module (const string& module_name, XorpCallback0<void>::RefPtr cb)

kill_module

void  module_shutdown_cb ()

module_shutdown_cb

bool  module_is_running (const string& module_name)

module_is_running

[const]

bool  module_has_started (const string& module_name)

module_has_started

[const]

void  shutdown ()

shutdown

bool  shutdown_complete ()

shutdown_complete

void  module_status_changed (const string& module_name, Module::ModuleStatus old_status, Module::ModuleStatus new_status)

module_status_changed

void  get_module_list (list <string>& modules)

get_module_list

const string&  xorp_root_dir ()

xorp_root_dir

[const]

int  shell_execute (uid_t userid, const vector<string>& argv, ModuleManager::CallBack cb, bool do_exec)

shell_execute

shell_execute is used to start external processes, running them in a shell. It is NOT used to start regular XORP processes, but rather for background maintenance tasks. This is ModuleManager functionality primarily because it simplifies the handling of SIGCHILD.

Parameters:

useridthe UID of the user to run the task as.
argvthe command and arguements to run
callbackcallback to call when the child process terminates
MasterConfigTree*  master_config_tree ()

master_config_tree

[const]

void  set_master_config_tree (MasterConfigTree* v)

set_master_config_tree

void  set_xrl_interface (XrlRtrmgrInterface* xrl_interface)

set_xrl_interface

bool  do_restart ()

do_restart

[const]

Test if processes that have failed should be restarted.

Returns: true if failed processes should be restarted, otherwise false.


Generated by: pavlin on possum.icir.org on Wed Apr 13 21:53:23 2005, using kdoc $.