Public Methods
- TaskManager (MasterConfigTree& config_tree,
ModuleManager& mmgr,
XorpClient& xclient, bool global_do_exec,
bool verbose)
- ~TaskManager ()
- void set_do_exec (bool do_exec, bool is_verification)
- void reset ()
- int add_module (const ModuleCommand& mod_cmd, string& error_msg)
- void add_xrl (const string& module_name, const UnexpandedXrl& xrl,
XrlRouter::XrlCallback& cb)
- void add_program (const string& module_name,
const UnexpandedProgram& program,
TaskProgramItem::ProgramCallback program_cb)
- void shutdown_module (const string& module_name)
- void run (CallBack cb)
- XorpClient& xorp_client () const
- ModuleManager& module_manager () const
- MasterConfigTree& config_tree () const
- bool do_exec () const
- bool is_verification () const
- bool verbose () const
- EventLoop& eventloop () const
- void kill_process (const string& module_name)
- const RunShellCommand::ExecId& exec_id () const
- void set_exec_id (const RunShellCommand::ExecId& v)
~TaskManager ()
| ~TaskManager |
void set_do_exec (bool do_exec, bool is_verification)
| set_do_exec |
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 shutdown_module (const string& module_name)
| shutdown_module |
void run (CallBack cb)
| run |
[const]
[const]
[const]
[const]
bool is_verification ()
| is_verification |
[const]
[const]
[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_name | the 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:
Generated by: bms on anglepoise.lon.incunabulum.net on Wed Jul 23 10:06:10 2008, using kdoc 2.0a54+XORP.