MStatisticsSample Class Reference

Class holding a statistics sample. More...

Public Member Functions

int getActiveWebConnections ()
 
int getActiveWebSessions ()
 
int getActiveWebSSLConnections ()
 
int getConnectedManagements ()
 
int getConnectedNodes ()
 
int getConnectedNotificators ()
 
double getCpuProcessUsage ()
 
const std::vector< double > & getCpuUsages ()
 
const std::vector< double > & getDiskReadUsage ()
 
const std::vector< std::string > & getDisksNames ()
 
const std::vector< double > & getDiskWriteUsage ()
 
const std::string & getEncodedDisksUsage ()
 
const std::string & getEncodedNicUsage ()
 
const std::string & getEncodedProcessorsUsage ()
 
const std::string & getEncodedRamUsage ()
 
long getId ()
 
int getIdleNodes ()
 
double getManagementInKbs ()
 
double getManagementOutKbs ()
 
unsigned long long int getManagementsInBytes ()
 
unsigned long long int getManagementsOutBytes ()
 
const std::vector< double > & getNicBandwidth ()
 
const std::vector< std::string > & getNicNames ()
 
const std::vector< unsigned long long > & getNicReadBytes ()
 
const std::vector< unsigned long long > & getNicSentBytes ()
 
unsigned long long int getNodesInBytes ()
 
double getNodesInKbs ()
 
unsigned long long int getNodesOutBytes ()
 
double getNodesOutKbs ()
 
unsigned long long int getNotificatorsInBytes ()
 
double getNotificatorsInKbs ()
 
unsigned long long int getNotificatorsOutBytes ()
 
double getNotificatorsOutKbs ()
 
int getPausedNodes ()
 
long long getSampleTime ()
 
mRamCounterType getSwapUsage ()
 
double getTotalInKbs ()
 
double getTotalOutKbs ()
 
mRamCounterType getTotalRamAmount ()
 
mRamCounterType getTotalSwapAmount ()
 
int getUnavailableNodes ()
 
int getUsedNodes ()
 
mRamCounterType getUsedRam ()
 
double getUsedRamByProcessPercent ()
 
double getUsedRamPercent ()
 
double getUsedSwapPercent ()
 
unsigned long long int getWebInBytes ()
 
double getWebInKbs ()
 
unsigned long long int getWebOutBytes ()
 
double getWebOutKbs ()
 
 MStatisticsSample ()
 
void reset ()
 
void setActiveWebConnections (int amount)
 
void setActiveWebSessions (int amount)
 
void setActiveWebSSLConnections (int amount)
 
void setConnectedManagements (int amount)
 
void setConnectedNodes (int amount)
 
void setConnectedNotificators (int amount)
 
void setEncodedDisksUsage (const std::string &disksUsage)
 
void setEncodedNicUsage (const std::string &nicUsage)
 
void setEncodedProcessorsUsage (const std::string &processorsUsage)
 
void setEncodedRamUsage (const std::string &ramUsage)
 
void setId (long id)
 
void setIdleNodes (int amount)
 
void setManagementInKbs (double amount)
 
void setManagementOutKbs (double amount)
 
void setManagementsInBytes (unsigned long long int amount)
 
void setManagementsOutBytes (unsigned long long int amount)
 
void setNodesInBytes (unsigned long long int amount)
 
void setNodesInKbs (double amount)
 
void setNodesOutBytes (unsigned long long int amount)
 
void setNodesOutKbs (double amount)
 
void setNotificatorsInBytes (unsigned long long int amount)
 
void setNotificatorsInKbs (double amount)
 
void setNotificatorsOutBytes (unsigned long long int amount)
 
void setNotificatorsOutKbs (double amount)
 
void setPausedNodes (int amount)
 
void setSampleTime (long long time)
 
void setUnavailableNodes (int amount)
 
void setUsedNodes (int amount)
 
void setWebInBytes (unsigned long long int amount)
 
void setWebInKbs (double amount)
 
void setWebOutBytes (unsigned long long int amount)
 
void setWebOutKbs (double amount)
 
virtual ~MStatisticsSample ()
 

Detailed Description

Class holding a statistics sample.

Holds data related to a statistics sample

Definition at line 79 of file MStatisticsSample.h.

Constructor & Destructor Documentation

Default constructor

virtual ~MStatisticsSample ( )
virtual

Default destructor

Member Function Documentation

int getActiveWebConnections ( )
Returns
the number of web unencrypted connections in the sample
int getActiveWebSessions ( )
Returns
the number of active web sessions in the sample
int getActiveWebSSLConnections ( )
Returns
the number of web encrypted connections in the sample
int getConnectedManagements ( )
Returns
the number of management connections in the sample
int getConnectedNodes ( )
Returns
the number of connected nodes in the sample
int getConnectedNotificators ( )
Returns
the number of notificator connections in the sample
double getCpuProcessUsage ( )
Returns
the cpu usages by the allocating process in the sample
const std::vector<double>& getCpuUsages ( )
Returns
a vector of distinct cpus usages in the sample
const std::vector<double>& getDiskReadUsage ( )
Returns
the DISKS read usage in the sample. Percentage for Windows, in blocks for Unix
const std::vector<std::string>& getDisksNames ( )
Returns
names of the DISKs in the sample, may be blank if not the first sample
const std::vector<double>& getDiskWriteUsage ( )
Returns
the DISKS write usage in the sample. Percentage for Windows, in blocks for Unix
const std::string& getEncodedDisksUsage ( )
Returns
the encoded DISKs usage in the sample. Available from 9.0.5
const std::string& getEncodedNicUsage ( )
Returns
the encoded NICs usage in the sample. Available from 9.0.5
const std::string& getEncodedProcessorsUsage ( )
Returns
the encoded processors usage in the sample
const std::string& getEncodedRamUsage ( )
Returns
the encoded RAM/SWAP usage in the sample
long getId ( )
Returns
the sample ID as a long value
int getIdleNodes ( )
Returns
the number of idle nodes in the sample
double getManagementInKbs ( )
Returns
the sampled management input KB/s in the sample
double getManagementOutKbs ( )
Returns
the sampled management output KB/s in the sample
unsigned long long int getManagementsInBytes ( )
Returns
the accumulated management input bytes in the sample
unsigned long long int getManagementsOutBytes ( )
Returns
the accumulated management output bytes in the sample
const std::vector<double>& getNicBandwidth ( )
Returns
the NICs bandwidth usage in the sample
const std::vector<std::string>& getNicNames ( )
Returns
names of the NICs in the sample, may be blank if not the first sample
const std::vector<unsigned long long>& getNicReadBytes ( )
Returns
the NICs received bytes in the sample
const std::vector<unsigned long long>& getNicSentBytes ( )
Returns
the NICs sent bytes in the sample
unsigned long long int getNodesInBytes ( )
Returns
the accumulated nodes input bytes in the sample
double getNodesInKbs ( )
Returns
the sampled nodes input KB/s in the sample
unsigned long long int getNodesOutBytes ( )
Returns
the accumulated nodes output bytes in the sample
double getNodesOutKbs ( )
Returns
the sampled nodes output KB/s in the sample
unsigned long long int getNotificatorsInBytes ( )
Returns
the accumulated notificator input bytes in the sample
double getNotificatorsInKbs ( )
Returns
the sampled notificator input KB/s in the sample
unsigned long long int getNotificatorsOutBytes ( )
Returns
the accumulated notificator output bytes in the sample
double getNotificatorsOutKbs ( )
Returns
the sampled notificator output KB/s in the sample
int getPausedNodes ( )
Returns
the number of paused nodes in the sample
long long getSampleTime ( )
Returns
the sample time as a long long value
mRamCounterType getSwapUsage ( )
Returns
the total swap usage in the sample
double getTotalInKbs ( )
Returns
the sampled total input KB/s in the sample
double getTotalOutKbs ( )
Returns
the sampled total output KB/s in the sample
mRamCounterType getTotalRamAmount ( )
Returns
the total ram amount in the sample
mRamCounterType getTotalSwapAmount ( )
Returns
the total swap amount in the sample
int getUnavailableNodes ( )
Returns
the number of unavailable/offline nodes in the sample
int getUsedNodes ( )
Returns
the number of used nodes in the sample
mRamCounterType getUsedRam ( )
Returns
the used ram amount in the sample
double getUsedRamByProcessPercent ( )
Returns
the cpu usages by the allocating process in the sample in percentage
double getUsedRamPercent ( )
Returns
the used ram amount in the sample in percentage
double getUsedSwapPercent ( )
Returns
the used swap amount in the sample in percentage
unsigned long long int getWebInBytes ( )
Returns
the accumulated HTTP(S) input bytes in the sample
double getWebInKbs ( )
Returns
the sampled HTTP(S) input KB/s in the sample
unsigned long long int getWebOutBytes ( )
Returns
the accumulated HTTP(S) output bytes in the sample
double getWebOutKbs ( )
Returns
the sampled HTTP(S) output KB/s in the sample
void reset ( )

Resets the statistics objects to its default values

void setActiveWebConnections ( int  amount)

Sets the sample active web unencrypted connections

Parameters
[in]amountThe amount of the sample
void setActiveWebSessions ( int  amount)

Sets the sample active web sessions

Parameters
[in]amountThe amount of the sample
void setActiveWebSSLConnections ( int  amount)

Sets the sample active web encrypted connections

Parameters
[in]amountThe amount of the sample
void setConnectedManagements ( int  amount)

Sets the sample connected managements

Parameters
[in]amountThe amount of the sample
void setConnectedNodes ( int  amount)

Sets the sample connected nodes

Parameters
[in]amountThe amount of the sample
void setConnectedNotificators ( int  amount)

Sets the sample connected notificators

Parameters
[in]amountThe amount of the sample
void setEncodedDisksUsage ( const std::string &  disksUsage)

Sets the encoded DISKs usage. Available from 9.0.5

Parameters
[in]disksUsageThe encoded disks usage
void setEncodedNicUsage ( const std::string &  nicUsage)

Sets the encoded NICs usage. Available from 9.0.5

Parameters
[in]nicUsageThe encoded NICs usage
void setEncodedProcessorsUsage ( const std::string &  processorsUsage)

Sets the encoded processors usage

Parameters
[in]processorsUsageThe encoded processors usage
void setEncodedRamUsage ( const std::string &  ramUsage)

Sets the encoded ram usage

Parameters
[in]ramUsageThe encoded ran usage
void setId ( long  id)

Sets the sample ID

Parameters
[in]idThe sample ID
void setIdleNodes ( int  amount)

Sets the sample idle nodes

Parameters
[in]amountThe amount of the sample
void setManagementInKbs ( double  amount)

Sets the sample management input KB/s

Parameters
[in]amountThe amount of the sample
void setManagementOutKbs ( double  amount)

Sets the sample management output KB/s

Parameters
[in]amountThe amount of the sample
void setManagementsInBytes ( unsigned long long int  amount)

Sets the accumulated managements input bytes

Parameters
[in]amountThe amount of the sample
void setManagementsOutBytes ( unsigned long long int  amount)

Sets the accumulated managements output bytes

Parameters
[in]amountThe amount of the sample
void setNodesInBytes ( unsigned long long int  amount)

Sets the accumulated nodes input bytes

Parameters
[in]amountThe amount of the sample
void setNodesInKbs ( double  amount)

Sets the sample nodes input KB/s

Parameters
[in]amountThe amount of the sample
void setNodesOutBytes ( unsigned long long int  amount)

Sets the accumulated nodes output bytes

Parameters
[in]amountThe amount of the sample
void setNodesOutKbs ( double  amount)

Sets the sample nodes output input KB/s

Parameters
[in]amountThe amount of the sample
void setNotificatorsInBytes ( unsigned long long int  amount)

Sets the accumulated notificator input bytes

Parameters
[in]amountThe amount of the sample
void setNotificatorsInKbs ( double  amount)

Sets the sample notificaators input KB/s

Parameters
[in]amountThe amount of the sample
void setNotificatorsOutBytes ( unsigned long long int  amount)

Sets the accumulated notificator output bytes

Parameters
[in]amountThe amount of the sample
void setNotificatorsOutKbs ( double  amount)

Sets the sample notificators output KB/s

Parameters
[in]amountThe amount of the sample
void setPausedNodes ( int  amount)

Sets the sample paused nodes

Parameters
[in]amountThe amount of the sample
void setSampleTime ( long long  time)

Sets the sample time

Parameters
[in]timeThe sample time in seconds
void setUnavailableNodes ( int  amount)

Sets the sample unavailable nodes

Parameters
[in]amountThe amount of the sample
void setUsedNodes ( int  amount)

Sets the sample used nodes

Parameters
[in]amountThe amount of the sample
void setWebInBytes ( unsigned long long int  amount)

Sets the accumulated HTTP(S) input bytes

Parameters
[in]amountThe amount of the sample
void setWebInKbs ( double  amount)

Sets the sample HTTP(S) input KB/s

Parameters
[in]amountThe amount of the sample
void setWebOutBytes ( unsigned long long int  amount)

Sets the accumulated HTTP(S) output bytes

Parameters
[in]amountThe amount of the sample
void setWebOutKbs ( double  amount)

Sets the sample HTTP(S) output KB/s

Parameters
[in]amountThe amount of the sample

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