xorp

Task Class Reference

List of all members.

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)
Validationready_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
XorpClientxorp_client () const
const RunShellCommand::ExecIdexec_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
EventLoopeventloop () 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

Member Function Documentation

const RunShellCommand::ExecId& Task::exec_id ( ) const [inline]

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 task.
void Task::set_exec_id ( const RunShellCommand::ExecId v) [inline]

Set the execution ID for executing the task.

Parameters:
vthe execution ID.

The documentation for this class was generated from the following files:
 All Classes Namespaces Functions Variables Typedefs Enumerations