Belle II Software  release-08-01-10
ProcessController Class Reference
Collaboration diagram for ProcessController:

Public Member Functions

 ProcessController (RCCallback *callback)
 
bool init (const std::string &parname, int nodeid=0)
 
void clear ()
 
bool load (int timeout)
 
bool start (int expno, int runno)
 
bool pause ()
 
bool resume ()
 
bool stop ()
 
bool abort (unsigned int timeout=60)
 
const std::string & getName ()
 
const std::string & getParName ()
 
const std::string & getExecutable ()
 
RunInfoBuffergetInfo ()
 
RCCallbackgetCallback ()
 
const ProcessgetProcess () const
 
ProcessgetProcess ()
 
void setCallback (RCCallback *callback)
 
void setName (const std::string &name)
 
void setExecutable (const std::string &exe)
 
void addArgument (const std::string &arg)
 
void addArgument (const char *format,...)
 
template<typename T >
void addArgument (T arg)
 
void clearArguments ()
 
bool isAlive () const
 
bool waitReady (int timeout)
 
void lock ()
 
void unlock ()
 

Private Attributes

RunInfoBuffer m_info
 
std::string m_name
 
std::string m_parname
 
RCCallbackm_callback
 
std::string m_exename
 
std::vector< std::string > m_arg_v
 
Process m_process
 
Mutex m_mutex
 
std::string m_message
 
PThread m_th_log
 
PThread m_th_process
 
int m_iopipe [2]
 

Friends

class ProcessSubmitter
 

Detailed Description

Definition at line 28 of file ProcessController.h.


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