Inheritance diagram for QMsgClient:

Public Member Functions | |
| QMsgClient () | |
| default constructor: server address and port are determined from environment variables. A QError is thrown if they are not set. | |
| QMsgClient (const std::string &address, const std::string &port) | |
| default constructor | |
| virtual | ~QMsgClient () |
| destructor | |
| bool | RegisterProcess (const std::string &processName, const std::string &host, pid_t processPid) |
| register a process to message server | |
| bool | UnregisterProcess (const std::string &processName) |
| unregister a process previously registered to message server | |
| bool | SendStatus (const std::string &processName, ProcessStatus_t status) |
| inform message server about the status of a process | |
| bool | SendLog (const std::string &processName, const std::string &message, MsgLevel level=InfoMsg) |
| send log message to message server | |
| bool | GetStatus (const std::string &processName, ProcessStatus_t &status) |
| get current status for a certain process | |
| bool | GetRegisteredProcesses (std::list< std::string > &processes) |
| get a list of registered processes | |
| bool | IsRegistered (const std::string &processName, bool &isReg) |
| check whether a certain process is registered | |
| QMsgClient::QMsgClient | ( | const std::string & | address, | |
| const std::string & | port | |||
| ) |
default constructor
| address | network address of the MsgLogger server | |
| port | port for network connection |
| bool QMsgClient::RegisterProcess | ( | const std::string & | processName, | |
| const std::string & | host, | |||
| pid_t | processPid | |||
| ) |
register a process to message server
| processName | process name with which the server will identify the client in future communications | |
| host | the host name from which the client is connecting | |
| pid | process id of the process that is being registered |
| bool QMsgClient::UnregisterProcess | ( | const std::string & | processName | ) |
unregister a process previously registered to message server
| processName | name of the process to be released |
| bool QMsgClient::SendStatus | ( | const std::string & | processName, | |
| ProcessStatus_t | status | |||
| ) |
inform message server about the status of a process
| processName | name of the process | |
| status | process status to be sent return true on success, false if process was not previously registered or an error occurred in the network communication |
| bool QMsgClient::SendLog | ( | const std::string & | processName, | |
| const std::string & | message, | |||
| MsgLevel | level = InfoMsg | |||
| ) |
send log message to message server
| processName | name of the process that is sending the message | |
| message | log message | |
| level | log level (defaults to InfoMsg) |
| bool QMsgClient::GetStatus | ( | const std::string & | processName, | |
| ProcessStatus_t & | status | |||
| ) |
get current status for a certain process
| processName | name of the process for which informations are requested | |
| status | is filled with current status of the process |
| bool QMsgClient::GetRegisteredProcesses | ( | std::list< std::string > & | processes | ) |
get a list of registered processes
| processes | filled with the names of registered processes |
| bool QMsgClient::IsRegistered | ( | const std::string & | processName, | |
| bool & | isReg | |||
| ) |
check whether a certain process is registered
| processName | name of the process to eb cheched | |
| isReg | will be set to true if process is regstered | |
| return | true, unless an error occurs in network communication |
1.5.1