Public Methods
- ModuleManager (EventLoop& eventloop, bool verbose,
const string& xorp_root_dir)
- ~ModuleManager ()
- bool new_module (const string& module_name, const string& path)
- int start_module (const string& module_name, bool do_exec,
XorpCallback1<void, bool>::RefPtr cb)
- int kill_module (const string& module_name,
XorpCallback0<void>::RefPtr cb)
- void module_shutdown_cb ()
- bool module_exists (const string& module_name) const
- bool module_is_running (const string& module_name) const
- bool module_has_started (const string& module_name) const
- void shutdown ()
- bool shutdown_complete ()
- EventLoop& eventloop ()
- void module_status_changed (const string& module_name,
Module::ModuleStatus old_status,
Module::ModuleStatus new_status)
- const string& xorp_root_dir () const
- int shell_execute (uid_t userid, const vector<string>& argv,
ModuleManager::CallBack cb, bool do_exec)
- ModuleManager (EventLoop& eventloop)
- bool new_module (const string& module_name, const string& path)
- int start_module (const string& module_name, bool do_exec,
XorpCallback1<void, bool>::RefPtr cb)
- int kill_module (const string& module_name, XorpCallback0<void>::RefPtr cb)
- bool module_exists (const string& module_name) const
- bool module_has_started (const string& module_name) const
- int shell_execute (uid_t userid, const vector<string>& argv,
ModuleManager::CallBack cb, bool do_exec)
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 |
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:
userid | the UID of the user to run the task as.
|
argv | the command and arguements to run
|
callback | callback 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 $.