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, bool is_verification)

set_do_exec

void  reset ()

reset

int  add_module (const ModuleCommand& mod_cmd, string& error_msg)

add_module

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

add_xrl

void  add_program (const string& module_name, const UnexpandedProgram& program, TaskProgramItem::ProgramCallback program_cb)

add_program

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  is_verification ()

is_verification

[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 or any other mechanism, so we just kill it outright.

Parameters:

module_namethe module name of the process to be killed.
const RunShellCommand::ExecId&  exec_id ()

exec_id

[const]

Get a reference to the ExecId object.

Returns: a reference to the ExecId object that is used for setting the execution ID when running the tasks.

void  set_exec_id (const RunShellCommand::ExecId& v)

set_exec_id

Set the execution ID for executing the tasks.

Parameters:

vthe execution ID.

Generated by: pavlin on kobe.xorp.net on Wed Jan 7 19:11:12 2009, using kdoc 2.0a54+XORP.