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

#include <ResourceUsageManager.hpp>

Classes

struct  Weights

Public Member Functions

 ResourceUsageManager (HCE::LoggerStream &logger_)
 ~ResourceUsageManager (void)
void add (const std::string &identity, ResourceUsageCollection &collection, const ResourceUsageData &resourceUsageData, size_t maxSize=MAX_SIZE)
void add (const std::string &identity, ResourceUsageCollection &collection, const std::string &resources, size_t maxSize=MAX_SIZE)
ResourceUsageData calculateAverage (const std::string &identity, ResourceUsageCollection &collection)
bool isAllowedRange (const std::string &identity, double maxAllowedRange)
void setMaxSize (size_t maxSize_)
size_t getMaxSize (void) const
size_t nextStep (const std::string &identity)
size_t prevStep (const std::string &identity)
void setLastWeight (const std::string &identity, double weight)
double getLastWeight (const std::string &identity)
void setListWeights (const std::string &identity, const std::vector< double > &listWeights)
std::vector< double > getListWeights (const std::string &identity)

Protected Member Functions

ResourceUsageData averageValue (ResourceUsageCollection &collection, size_t count)

Detailed Description

Definition at line 25 of file ResourceUsageManager.hpp.

Constructor & Destructor Documentation

HCE::handlers::ResourceUsageManager::ResourceUsageManager ( HCE::LoggerStream logger_)

Definition at line 114 of file ResourceUsageManager.cpp.

Here is the call graph for this function:

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

Definition at line 40 of file ResourceUsageManager.hpp.

Member Function Documentation

void HCE::handlers::ResourceUsageManager::add ( const std::string &  identity,
ResourceUsageCollection collection,
const ResourceUsageData resourceUsageData,
size_t  maxSize = MAX_SIZE 
)

Definition at line 9 of file ResourceUsageManager.cpp.

Here is the caller graph for this function:

void HCE::handlers::ResourceUsageManager::add ( const std::string &  identity,
ResourceUsageCollection collection,
const std::string &  resources,
size_t  maxSize = MAX_SIZE 
)

Definition at line 22 of file ResourceUsageManager.cpp.

Here is the call graph for this function:

ResourceUsageData HCE::handlers::ResourceUsageManager::averageValue ( ResourceUsageCollection collection,
size_t  count 
)
protected

Definition at line 66 of file ResourceUsageManager.cpp.

Here is the caller graph for this function:

ResourceUsageData HCE::handlers::ResourceUsageManager::calculateAverage ( const std::string &  identity,
ResourceUsageCollection collection 
)

Definition at line 28 of file ResourceUsageManager.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

double HCE::handlers::ResourceUsageManager::getLastWeight ( const std::string &  identity)

Definition at line 151 of file ResourceUsageManager.cpp.

std::vector< double > HCE::handlers::ResourceUsageManager::getListWeights ( const std::string &  identity)

Definition at line 165 of file ResourceUsageManager.cpp.

size_t HCE::handlers::ResourceUsageManager::getMaxSize ( void  ) const
inline

Definition at line 50 of file ResourceUsageManager.hpp.

Here is the caller graph for this function:

bool HCE::handlers::ResourceUsageManager::isAllowedRange ( const std::string &  identity,
double  maxAllowedRange 
)

Definition at line 80 of file ResourceUsageManager.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

size_t HCE::handlers::ResourceUsageManager::nextStep ( const std::string &  identity)

Definition at line 132 of file ResourceUsageManager.cpp.

Here is the caller graph for this function:

size_t HCE::handlers::ResourceUsageManager::prevStep ( const std::string &  identity)

Definition at line 139 of file ResourceUsageManager.cpp.

Here is the caller graph for this function:

void HCE::handlers::ResourceUsageManager::setLastWeight ( const std::string &  identity,
double  weight 
)

Definition at line 146 of file ResourceUsageManager.cpp.

Here is the caller graph for this function:

void HCE::handlers::ResourceUsageManager::setListWeights ( const std::string &  identity,
const std::vector< double > &  listWeights 
)

Definition at line 160 of file ResourceUsageManager.cpp.

Here is the caller graph for this function:

void HCE::handlers::ResourceUsageManager::setMaxSize ( size_t  maxSize_)

Definition at line 120 of file ResourceUsageManager.cpp.

Here is the caller graph for this function:


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