#include <pep_client.hpp>
The class for PEP client to run.
Status of the PEP client.
PEP_Client::PEP_Client |
( |
const char * |
szAppName, |
|
|
bool |
bServerRuntime = false |
|
) |
| |
Create the PEP client application starter environment. Runtime is created in pepServer mode only if bServerRuntime is true.
virtual PEP_Client::~PEP_Client |
( |
| ) |
|
|
virtual |
const char* PEP_Client::appName |
( |
| ) |
const |
Return name of the client.
bool PEP_Client::hasProperty |
( |
const char * |
szPropName, |
|
|
const char * |
szType = NULL |
|
) |
| const |
Check given property name for existence. If given type is supplied as the second argument then the type is checked. Returns true or false.
int PEP_Client::jobNumber |
( |
| ) |
const |
Return the client job number if its running or finished. Before first run -1 is returned.
void PEP_Client::newJobNumber |
( |
| ) |
|
pid_t PEP_Client::pid |
( |
| ) |
const |
Return the client pid if its running otherwise some garbage is returned.
const char* PEP_Client::property |
( |
const char * |
szPropName | ) |
const |
Returns type argument of given property name. Returns NULL if the property does not have type argument.
void PEP_Client::resetJobNumber |
( |
| ) |
|
Reset job number as if it is not run yet.
int PEP_Client::run |
( |
const char * |
szLogFpath = NULL | ) |
|
Run the client and store its job number. The parameter szLogFile allows to append all log messages from the PEP client to this file. Return 0 in case of success and error code otherwise.
Return the status of the client.
Return the status of the client checking actually the existence of the process.
ErrCode PEP_Client::waitForExit |
( |
int * |
pExitStatus = NULL | ) |
|
Wait for the client's exit and return its status code (see waitpid API). Results are read from the file and inputted to pepResults protocol handle.
The status of the client.
The job number of currently running or finished client.
The pid of currently running client.
char* PEP_Client::m_szAppName |
|
protected |
The documentation for this class was generated from the following file:
- /net/opt/univers/ubp-i-15.3-centos7-x64.urij/include/csi/pep_client.hpp