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::RequestRouteMessage Class Reference

#include <ServiceMessages.hpp>

Inheritance diagram for HCE::handlers::RequestRouteMessage:
Collaboration diagram for HCE::handlers::RequestRouteMessage:

Public Types

enum  ErrorCodes { NO_ERROR = 0, ERROR_SERIALIZE = 1, ERROR_UNSERIALIZE = 2 }
- Public Types inherited from HCE::IJsonSerializable
enum  { NO_ERROR = 0 }

Public Member Functions

 RequestRouteMessage (const std::string &json="")
 ~RequestRouteMessage (void)
bool serialize (std::string &json)
bool unserialize (const std::string &json)
void clear (void)
void setManagerRole (unsigned int managerRole_)
unsigned int getManagerRole (void) const
void setNodesNames (std::vector< std::string > nodesNames_)
std::vector< std::string > getNodesNames (void) const
void setResourcesUsageAlgorithm (unsigned int resourcesUsageAlgorithm_)
unsigned int getResourcesUsageAlgorithm (void) const
void setResourcesUsageAlgorithmWeights (const std::string &resourcesUsageAlgorithmWeights_)
std::string getResourcesUsageAlgorithmWeights (void) const
void setResourcesUsageLimits (const std::string &resourcesUsageLimits_)
std::string getResourcesUsageLimits (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 72 of file ServiceMessages.hpp.

Member Enumeration Documentation

Enumerator:
NO_ERROR 
ERROR_SERIALIZE 
ERROR_UNSERIALIZE 

Definition at line 81 of file ServiceMessages.hpp.

Constructor & Destructor Documentation

HCE::handlers::RequestRouteMessage::RequestRouteMessage ( const std::string &  json = "")

Definition at line 228 of file ServiceMessages.cpp.

Here is the call graph for this function:

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

Definition at line 89 of file ServiceMessages.hpp.

Member Function Documentation

void HCE::handlers::RequestRouteMessage::clear ( void  )

Definition at line 332 of file ServiceMessages.cpp.

Here is the caller graph for this function:

unsigned int HCE::handlers::RequestRouteMessage::getManagerRole ( void  ) const
inline

Definition at line 97 of file ServiceMessages.hpp.

Here is the caller graph for this function:

std::vector<std::string> HCE::handlers::RequestRouteMessage::getNodesNames ( void  ) const
inline

Definition at line 100 of file ServiceMessages.hpp.

Here is the caller graph for this function:

unsigned int HCE::handlers::RequestRouteMessage::getResourcesUsageAlgorithm ( void  ) const
inline

Definition at line 103 of file ServiceMessages.hpp.

Here is the caller graph for this function:

std::string HCE::handlers::RequestRouteMessage::getResourcesUsageAlgorithmWeights ( void  ) const
inline

Definition at line 106 of file ServiceMessages.hpp.

Here is the caller graph for this function:

std::string HCE::handlers::RequestRouteMessage::getResourcesUsageLimits ( void  ) const
inline

Definition at line 109 of file ServiceMessages.hpp.

Here is the caller graph for this function:

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

Implements HCE::IJsonSerializable.

Definition at line 235 of file ServiceMessages.cpp.

Here is the call graph for this function:

void HCE::handlers::RequestRouteMessage::setManagerRole ( unsigned int  managerRole_)
inline

Definition at line 96 of file ServiceMessages.hpp.

void HCE::handlers::RequestRouteMessage::setNodesNames ( std::vector< std::string >  nodesNames_)
inline

Definition at line 99 of file ServiceMessages.hpp.

void HCE::handlers::RequestRouteMessage::setResourcesUsageAlgorithm ( unsigned int  resourcesUsageAlgorithm_)
inline

Definition at line 102 of file ServiceMessages.hpp.

void HCE::handlers::RequestRouteMessage::setResourcesUsageAlgorithmWeights ( const std::string &  resourcesUsageAlgorithmWeights_)
inline

Definition at line 105 of file ServiceMessages.hpp.

void HCE::handlers::RequestRouteMessage::setResourcesUsageLimits ( const std::string &  resourcesUsageLimits_)
inline

Definition at line 108 of file ServiceMessages.hpp.

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

Implements HCE::IJsonSerializable.

Definition at line 281 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: