Public Types |
typedef XorpCallback2< void,
bool, const string & >::RefPtr | CallBack |
Public Member Functions |
|
| Task (const string &name, TaskManager &taskmgr) |
|
void | start_module (const string &mod_name, Validation *startup_validation, Validation *config_validation, Startup *startup) |
|
void | shutdown_module (const string &mod_name, Validation *validation, Shutdown *shutdown) |
|
void | add_xrl (const UnexpandedXrl &xrl, XrlRouter::XrlCallback &cb) |
|
void | add_program (const UnexpandedProgram &program, TaskProgramItem::ProgramCallback program_cb) |
|
void | set_ready_validation (Validation *validation) |
|
Validation * | ready_validation () const |
|
bool | will_shutdown_module () const |
|
void | run (CallBack cb) |
|
void | item_done (bool success, bool fatal, const string &errmsg) |
|
bool | do_exec () const |
|
bool | is_verification () const |
|
XorpClient & | xorp_client () const |
| const RunShellCommand::ExecId & | exec_id () const |
| | Get a reference to the ExecId object.
|
| void | set_exec_id (const RunShellCommand::ExecId &v) |
| | Set the execution ID for executing the task.
|
|
const string & | name () const |
|
EventLoop & | eventloop () const |
|
bool | verbose () const |
Protected Member Functions |
|
void | step1_start () |
|
void | step1_done (bool success) |
|
void | step2_wait () |
|
void | step2_done (bool success) |
|
void | step2_2_wait () |
|
void | step2_2_done (bool success) |
|
void | step2_3_wait () |
|
void | step2_3_done (bool success) |
|
void | step3_config () |
|
void | step3_done (bool success) |
|
void | step4_wait () |
|
void | step4_done (bool success) |
|
void | step5_stop () |
|
void | step5_done (bool success) |
|
void | step6_wait () |
|
void | step6_done (bool success) |
|
void | step7_wait () |
|
void | step7_kill () |
|
void | step8_report () |
|
void | task_fail (const string &errmsg, bool fatal) |
Private Attributes |
|
string | _name |
|
TaskManager & | _taskmgr |
|
string | _module_name |
|
bool | _start_module |
|
bool | _stop_module |
|
Validation * | _startup_validation |
|
Validation * | _config_validation |
|
Validation * | _ready_validation |
|
Validation * | _shutdown_validation |
|
Startup * | _startup_method |
|
Shutdown * | _shutdown_method |
|
list< TaskBaseItem * > | _task_items |
|
bool | _config_done |
|
CallBack | _task_complete_cb |
|
XorpTimer | _wait_timer |
|
RunShellCommand::ExecId | _exec_id |
|
bool | _verbose |