xorp

ModuleManager::Process Class Reference

List of all members.

Public Member Functions

 Process (ModuleManager &mmgr, const string &expath)
 Constructor.
 ~Process ()
 The default constructor.
int startup (string &error_msg)
 Startup the process.
void terminate ()
 Terminate the process.
void terminate_with_prejudice ()
 Terminate the process with prejudice.

Private Member Functions

void stdout_cb (RunCommand *run_command, const string &output)
void stderr_cb (RunCommand *run_command, const string &output)
void done_cb (RunCommand *run_command, bool success, const string &error_msg)
void stopped_cb (RunCommand *run_command, int stop_signal)

Private Attributes

ModuleManager_mmgr
string _expath
RunCommand_run_command

Constructor & Destructor Documentation

ModuleManager::Process::Process ( ModuleManager mmgr,
const string &  expath 
)

Constructor.

Parameters:
mmgrthe module manager (ModuleManager) to use.
expaththe expanded absolute path to the executable program.

Member Function Documentation

int ModuleManager::Process::startup ( string &  error_msg)

Startup the process.

Parameters:
error_msgthe error message (if error).
Returns:
XORP_OK on success, otherwise XORP_ERROR.

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