hce-node application  1.4.3
HCE Hierarchical Cluster Engine node application
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
HCE::StarterExecutor Class Reference

#include <StarterExecutor.hpp>

Public Types

enum  StatusExecution { seUnknown = 0, seFinished = 1, seTerminated = 2 }

Public Member Functions

 StarterExecutor (const std::string &homeDir_, const std::string &starterFileName_="")
virtual ~StarterExecutor (void)
pid_t execute (const std::string &cmd, const std::string &inputStream, const Poco::Process::Env &env)
unsigned int wait (unsigned int waitTime=0)
void setStarterFileName (const std::string &starterFileName_)
std::string getStarterFileName (void) const
void setHomeDir (const std::string &homeDir_)
std::string getHomeDir (void) const
std::string getStarterFullName (void) const
std::stringstream & getOutStream (void)
std::stringstream & getErrStream (void)
pid_t getPid (void) const
StatusExecution getStatusExecution (void) const

Static Public Member Functions

static bool isExistShellScript (const std::string &homeDir, const std::string &scriptName)
static bool canExecuteShellScript (const std::string &homeDir, const std::string &scriptName)

Detailed Description

Definition at line 34 of file StarterExecutor.hpp.

Member Enumeration Documentation

Enumerator:
seUnknown 
seFinished 
seTerminated 

Definition at line 37 of file StarterExecutor.hpp.

Constructor & Destructor Documentation

HCE::StarterExecutor::StarterExecutor ( const std::string &  homeDir_,
const std::string &  starterFileName_ = "" 
)
explicit

Definition at line 13 of file StarterExecutor.cpp.

Here is the call graph for this function:

HCE::StarterExecutor::~StarterExecutor ( void  )
virtual

Definition at line 21 of file StarterExecutor.cpp.

Member Function Documentation

bool HCE::StarterExecutor::canExecuteShellScript ( const std::string &  homeDir,
const std::string &  scriptName 
)
static

Definition at line 122 of file StarterExecutor.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

pid_t HCE::StarterExecutor::execute ( const std::string &  cmd,
const std::string &  inputStream,
const Poco::Process::Env &  env 
)

Definition at line 64 of file StarterExecutor.cpp.

Here is the call graph for this function:

std::stringstream& HCE::StarterExecutor::getErrStream ( void  )
inline

Definition at line 58 of file StarterExecutor.hpp.

std::string HCE::StarterExecutor::getHomeDir ( void  ) const
inline

Definition at line 54 of file StarterExecutor.hpp.

std::stringstream& HCE::StarterExecutor::getOutStream ( void  )
inline

Definition at line 57 of file StarterExecutor.hpp.

pid_t HCE::StarterExecutor::getPid ( void  ) const
inline

Definition at line 60 of file StarterExecutor.hpp.

std::string HCE::StarterExecutor::getStarterFileName ( void  ) const
inline

Definition at line 51 of file StarterExecutor.hpp.

std::string HCE::StarterExecutor::getStarterFullName ( void  ) const

Definition at line 59 of file StarterExecutor.cpp.

Here is the caller graph for this function:

StatusExecution HCE::StarterExecutor::getStatusExecution ( void  ) const
inline

Definition at line 61 of file StarterExecutor.hpp.

bool HCE::StarterExecutor::isExistShellScript ( const std::string &  homeDir,
const std::string &  scriptName 
)
static

Definition at line 116 of file StarterExecutor.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

void HCE::StarterExecutor::setHomeDir ( const std::string &  homeDir_)

Definition at line 33 of file StarterExecutor.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

void HCE::StarterExecutor::setStarterFileName ( const std::string &  starterFileName_)

Definition at line 28 of file StarterExecutor.cpp.

Here is the caller graph for this function:

unsigned int HCE::StarterExecutor::wait ( unsigned int  waitTime = 0)

Definition at line 79 of file StarterExecutor.cpp.


The documentation for this class was generated from the following files: