A platform for high-performance distributed tool and library development written in C++. It can be deployed in two different cluster modes: standalone or distributed. API for v0.5.0, released on June 13, 2018.
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
pdb::NodeInfo Class Reference

#include <NodeInfo.h>

+ Inheritance diagram for pdb::NodeInfo:
+ Collaboration diagram for pdb::NodeInfo:

Public Member Functions

 NodeInfo ()
 
 ~NodeInfo ()
 
int getCpuLoad ()
 
void setCpuLoad (int cpuLoad)
 
StringgetHostName ()
 
void setHostName (pdb::String &hostName)
 
int getPort ()
 
void setPort (int port)
 
- Public Member Functions inherited from pdb::Object
void setVTablePtr (void *setToMe)
 
void * getVTablePtr ()
 
virtual void setUpAndCopyFrom (void *target, void *source) const
 
virtual void deleteObject (void *deleteMe)
 
virtual size_t getSize (void *ofMe)
 

Private Attributes

String hostName
 
int port
 
int cpuLoad
 

Additional Inherited Members

- Static Public Member Functions inherited from pdb::Object
static void * operator new (size_t sz, const std::nothrow_t &tag)
 
static void * operator new (size_t sz)
 
static void operator delete (void *me)
 
static void * operator new (std::size_t count, void *ptr)
 

Detailed Description

This class encapsulates data about each node. This data is a dynamic data that represents the current node CPU load in addition to other static information like hostname or host IP address and port.

Definition at line 41 of file NodeInfo.h.

Constructor & Destructor Documentation

pdb::NodeInfo::NodeInfo ( )
inline

Definition at line 44 of file NodeInfo.h.

pdb::NodeInfo::~NodeInfo ( )
inline

Definition at line 46 of file NodeInfo.h.

Member Function Documentation

int pdb::NodeInfo::getCpuLoad ( )
inline

Definition at line 49 of file NodeInfo.h.

String& pdb::NodeInfo::getHostName ( )
inline

Definition at line 57 of file NodeInfo.h.

int pdb::NodeInfo::getPort ( )
inline

Definition at line 65 of file NodeInfo.h.

void pdb::NodeInfo::setCpuLoad ( int  cpuLoad)
inline

Definition at line 53 of file NodeInfo.h.

void pdb::NodeInfo::setHostName ( pdb::String hostName)
inline

Definition at line 61 of file NodeInfo.h.

void pdb::NodeInfo::setPort ( int  port)
inline

Definition at line 69 of file NodeInfo.h.

Member Data Documentation

int pdb::NodeInfo::cpuLoad
private

Definition at line 82 of file NodeInfo.h.

String pdb::NodeInfo::hostName
private

Definition at line 77 of file NodeInfo.h.

int pdb::NodeInfo::port
private

Definition at line 79 of file NodeInfo.h.


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