xorp

ModuleCommand Class Reference

Inheritance diagram for ModuleCommand:
Command BaseCommand

List of all members.

Public Types

typedef XorpCallback3< void,
bool, const string &, const
string & >::RefPtr 
ProgramCallback

Public Member Functions

 ModuleCommand (TemplateTree &template_tree, TemplateTreeNode &template_tree_node, const string &cmd_name)
void add_action (const list< string > &action, const XRLdb *xrldb) throw (ParseError)
virtual bool expand_actions (string &error_msg)
virtual bool check_referred_variables (string &error_msg) const
Validationstartup_validation (TaskManager &taskmgr) const
Validationconfig_validation (TaskManager &taskmgr) const
Validationready_validation (TaskManager &taskmgr) const
Validationshutdown_validation (TaskManager &taskmgr) const
Startupstartup_method (TaskManager &taskmgr) const
Shutdownshutdown_method (TaskManager &taskmgr) const
const string & module_name () const
const string & module_exec_path () const
const list< string > & depends () const
int start_transaction (MasterConfigTreeNode &ctn, TaskManager &task_manager) const
int end_transaction (MasterConfigTreeNode &ctn, TaskManager &task_manager) const
string str () const

Protected Member Functions

void xrl_action_complete (const XrlError &err, XrlArgs *xrl_args, MasterConfigTreeNode *ctn, Action *action, string cmd) const
void program_action_complete (bool success, const string &stdout_output, const string &stderr_output, bool do_exec, MasterConfigTreeNode *ctn, Action *action, string cmd) const

Private Attributes

TemplateTree_tt
string _module_name
string _module_exec_path
string _default_target_name
list< string > _depends
Action_start_commit
Action_end_commit
Action_status_method
Action_startup_method
Action_shutdown_method
bool _execute_done
bool _verbose

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