hce-node application
1.4.3
HCE Hierarchical Cluster Engine node application
|
#include <ServiceMessages.hpp>
Public Types | |
enum | ErrorCodes { NO_ERROR = 0, ERROR_SERIALIZE = 1, ERROR_UNSERIALIZE = 2, ERROR_TITLE = 3 } |
Public Types inherited from HCE::IJsonSerializable | |
enum | { NO_ERROR = 0 } |
Public Member Functions | |
HeartbeatMessage (std::vector< ClientWorkerItem > &queue_, const std::string &resources_="") | |
~HeartbeatMessage (void) | |
bool | serialize (std::string &json) |
bool | unserialize (const std::string &json) |
std::string | build (const std::string &title=NODE_MSG_HEARTBEAT) |
void | extract (const std::string &message, const std::string &title=NODE_MSG_HEARTBEAT) |
void | clear (void) |
void | setResources (const std::string &resources_) |
std::string | getResources (void) const |
Public Member Functions inherited from HCE::IJsonSerializable | |
IJsonSerializable (void) | |
virtual | ~IJsonSerializable (void) |
void | setErrorMsg (const std::string &errorMsg_) |
std::string | getErrorMsg (void) const |
void | setErrorCode (unsigned int errorCode_) |
unsigned int | getErrorCode (void) const |
void | setIsError (bool isError_) |
bool | isError (void) const |
void | resetError (void) |
Additional Inherited Members | |
Protected Member Functions inherited from HCE::IJsonSerializable | |
template<class T = unsigned long long> | |
T | convertVarToNumeric (Poco::Dynamic::Var &var, T defaultValue) |
Protected Attributes inherited from HCE::IJsonSerializable | |
std::string | errorMsg |
unsigned int | errorCode |
bool | _isError |
Definition at line 121 of file ServiceMessages.hpp.
Definition at line 124 of file ServiceMessages.hpp.
|
explicit |
Definition at line 342 of file ServiceMessages.cpp.
|
inline |
Definition at line 133 of file ServiceMessages.hpp.
std::string HCE::handlers::HeartbeatMessage::build | ( | const std::string & | title = NODE_MSG_HEARTBEAT | ) |
Definition at line 460 of file ServiceMessages.cpp.
void HCE::handlers::HeartbeatMessage::clear | ( | void | ) |
Definition at line 495 of file ServiceMessages.cpp.
void HCE::handlers::HeartbeatMessage::extract | ( | const std::string & | message, |
const std::string & | title = NODE_MSG_HEARTBEAT |
||
) |
Definition at line 473 of file ServiceMessages.cpp.
|
inline |
|
virtual |
<Add routes data to json
<Add resources data to json
Implements HCE::IJsonSerializable.
Definition at line 360 of file ServiceMessages.cpp.
|
inline |
Definition at line 143 of file ServiceMessages.hpp.
|
virtual |
Implements HCE::IJsonSerializable.
Definition at line 417 of file ServiceMessages.cpp.