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::ClientWorkerItem Struct Reference

#include <ClientWorkerItem.hpp>

Collaboration diagram for HCE::handlers::ClientWorkerItem:

Public Member Functions

 ClientWorkerItem (void)
 ClientWorkerItem (const std::string &identity_, int64_t expiry_=0, unsigned long long frequency_=0, unsigned long long count_=0)
 ClientWorkerItem (const ClientWorkerItem &rhs)
 ClientWorkerItem (ClientWorkerItem &&rhs)
ClientWorkerItemoperator= (const ClientWorkerItem &rhs)
ClientWorkerItemoperator= (ClientWorkerItem &&rhs)
void clear (void)

Static Public Member Functions

static bool sortByFrequencyPredicate (const ClientWorkerItem &d1, const ClientWorkerItem &d2)

Public Attributes

std::string identity
 Identity.
int64_t expiry
 Expiration time.
unsigned long long frequency
 Frequency of usage, used to balance load round-robin way, but reset after some refresh not found or add new item actions.
unsigned long long count
 Counter of usage, differs from frequency that is reset when new worker added or not found during the refresh action.
std::vector< ClientWorkerItemroute
 List node names use for routing (key is identity)
ResourceUsageCollection resources
 Resource usage collection.
size_t rtimestamp
 Request timestamp.
TimeoutShiftCounter shiftCounter
 Timeout shift counter.
std::string property
 Property data.
double cpu
 Cpu usage value.
double iowait
 Iowait value.

Detailed Description

Definition at line 55 of file ClientWorkerItem.hpp.

Constructor & Destructor Documentation

HCE::handlers::ClientWorkerItem::ClientWorkerItem ( void  )

Definition at line 83 of file ClientWorkerItem.cpp.

HCE::handlers::ClientWorkerItem::ClientWorkerItem ( const std::string &  identity_,
int64_t  expiry_ = 0,
unsigned long long  frequency_ = 0,
unsigned long long  count_ = 0 
)
explicit

Definition at line 89 of file ClientWorkerItem.cpp.

HCE::handlers::ClientWorkerItem::ClientWorkerItem ( const ClientWorkerItem rhs)

Definition at line 95 of file ClientWorkerItem.cpp.

HCE::handlers::ClientWorkerItem::ClientWorkerItem ( ClientWorkerItem &&  rhs)

Definition at line 102 of file ClientWorkerItem.cpp.

Member Function Documentation

void HCE::handlers::ClientWorkerItem::clear ( void  )

Definition at line 147 of file ClientWorkerItem.cpp.

Here is the call graph for this function:

ClientWorkerItem & HCE::handlers::ClientWorkerItem::operator= ( const ClientWorkerItem rhs)

Definition at line 109 of file ClientWorkerItem.cpp.

ClientWorkerItem & HCE::handlers::ClientWorkerItem::operator= ( ClientWorkerItem &&  rhs)

Definition at line 128 of file ClientWorkerItem.cpp.

bool HCE::handlers::ClientWorkerItem::sortByFrequencyPredicate ( const ClientWorkerItem d1,
const ClientWorkerItem d2 
)
static

Definition at line 162 of file ClientWorkerItem.cpp.

Here is the caller graph for this function:

Member Data Documentation

unsigned long long HCE::handlers::ClientWorkerItem::count

Counter of usage, differs from frequency that is reset when new worker added or not found during the refresh action.

Definition at line 72 of file ClientWorkerItem.hpp.

double HCE::handlers::ClientWorkerItem::cpu

Cpu usage value.

Definition at line 78 of file ClientWorkerItem.hpp.

int64_t HCE::handlers::ClientWorkerItem::expiry

Expiration time.

Definition at line 70 of file ClientWorkerItem.hpp.

unsigned long long HCE::handlers::ClientWorkerItem::frequency

Frequency of usage, used to balance load round-robin way, but reset after some refresh not found or add new item actions.

Definition at line 71 of file ClientWorkerItem.hpp.

std::string HCE::handlers::ClientWorkerItem::identity

Identity.

Definition at line 69 of file ClientWorkerItem.hpp.

double HCE::handlers::ClientWorkerItem::iowait

Iowait value.

Definition at line 79 of file ClientWorkerItem.hpp.

std::string HCE::handlers::ClientWorkerItem::property

Property data.

Definition at line 77 of file ClientWorkerItem.hpp.

ResourceUsageCollection HCE::handlers::ClientWorkerItem::resources

Resource usage collection.

Definition at line 74 of file ClientWorkerItem.hpp.

std::vector<ClientWorkerItem> HCE::handlers::ClientWorkerItem::route

List node names use for routing (key is identity)

Definition at line 73 of file ClientWorkerItem.hpp.

size_t HCE::handlers::ClientWorkerItem::rtimestamp

Request timestamp.

Definition at line 75 of file ClientWorkerItem.hpp.

TimeoutShiftCounter HCE::handlers::ClientWorkerItem::shiftCounter

Timeout shift counter.

Definition at line 76 of file ClientWorkerItem.hpp.


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