class ModuleManager


 
LOGO
 Annotated List  Files  Globals  Hierarchy  Index  Top

Public Methods


Detailed Description

 ModuleManager (EventLoop& eventloop, 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_exists (const string& module_name)

module_exists

[const]

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

EventLoop&  eventloop ()

eventloop

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

module_status_changed

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
 ModuleManager (EventLoop& eventloop)

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

bool  module_exists (const string& module_name)

module_exists

[const]

bool  module_has_started (const string& module_name)

module_has_started

[const]

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

shell_execute


Generated by: pavlin on possum.icir.org on Thu Jul 8 23:48:41 2004, using kdoc $.