class TaskManager


 
LOGO
 Annotated List  Files  Globals  Hierarchy  Index  Top

Public Methods


Detailed Description

 TaskManager (MasterConfigTree& config_tree, ModuleManager& mmgr, XorpClient& xclient, bool global_do_exec, bool verbose)

TaskManager

 ~TaskManager ()

~TaskManager

void  set_do_exec (bool do_exec)

set_do_exec

void  reset ()

reset

int  add_module (const ModuleCommand& mod_cmd)

add_module

void  add_xrl (const string& module_name, const UnexpandedXrl& xrl, XrlRouter::XrlCallback& cb)

add_xrl

void  shutdown_module (const string& module_name)

shutdown_module

void  run (CallBack cb)

run

XorpClient&  xorp_client ()

xorp_client

[const]

ModuleManager&  module_manager ()

module_manager

[const]

MasterConfigTree&  config_tree ()

config_tree

[const]

bool  do_exec ()

do_exec

[const]

bool  verbose ()

verbose

[const]

EventLoop&  eventloop ()

eventloop

[const]

void  kill_process (const string& module_name)

kill_process

kill_process is used to kill a fatally wounded process. This does not politely ask the process to die, because if we get here we can't communicate with the process using XRLs, so we just kill it outright.

Parameters:

module_namethe module name of the process to be killed.
int  shell_execute (uid_t userid, const vector<string>& argv, TaskManager::CallBack cb)

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.

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

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