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

#include <ServiceMessages.hpp>

Inheritance diagram for HCE::handlers::HeartbeatMessage:
Collaboration diagram for HCE::handlers::HeartbeatMessage:

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>
convertVarToNumeric (Poco::Dynamic::Var &var, T defaultValue)
- Protected Attributes inherited from HCE::IJsonSerializable
std::string errorMsg
unsigned int errorCode
bool _isError

Detailed Description

Definition at line 121 of file ServiceMessages.hpp.

Member Enumeration Documentation

Enumerator:
NO_ERROR 
ERROR_SERIALIZE 
ERROR_UNSERIALIZE 
ERROR_TITLE 

Definition at line 124 of file ServiceMessages.hpp.

Constructor & Destructor Documentation

HCE::handlers::HeartbeatMessage::HeartbeatMessage ( std::vector< ClientWorkerItem > &  queue_,
const std::string &  resources_ = "" 
)
explicit

Definition at line 342 of file ServiceMessages.cpp.

HCE::handlers::HeartbeatMessage::~HeartbeatMessage ( void  )
inline

Definition at line 133 of file ServiceMessages.hpp.

Member Function Documentation

std::string HCE::handlers::HeartbeatMessage::build ( const std::string &  title = NODE_MSG_HEARTBEAT)

Definition at line 460 of file ServiceMessages.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

void HCE::handlers::HeartbeatMessage::clear ( void  )

Definition at line 495 of file ServiceMessages.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

void HCE::handlers::HeartbeatMessage::extract ( const std::string &  message,
const std::string &  title = NODE_MSG_HEARTBEAT 
)

Definition at line 473 of file ServiceMessages.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

std::string HCE::handlers::HeartbeatMessage::getResources ( void  ) const
inline

Definition at line 144 of file ServiceMessages.hpp.

Here is the caller graph for this function:

bool HCE::handlers::HeartbeatMessage::serialize ( std::string &  json)
virtual

<Add routes data to json

<Add resources data to json

Implements HCE::IJsonSerializable.

Definition at line 360 of file ServiceMessages.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

void HCE::handlers::HeartbeatMessage::setResources ( const std::string &  resources_)
inline

Definition at line 143 of file ServiceMessages.hpp.

bool HCE::handlers::HeartbeatMessage::unserialize ( const std::string &  json)
virtual

Implements HCE::IJsonSerializable.

Definition at line 417 of file ServiceMessages.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:


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