VMware GemFire Native C++ Reference  9.1
apache::geode::statistics::StatisticDescriptor Class Referenceabstract

Describes an individual statistic whose value is updated by an application and may be archived by Geode. More...

Public Member Functions

virtual const char * getDescription ()=0
 Returns a description of this statistic. More...
 
virtual int32_t getId ()=0
 Returns the id of this statistic in a StatisticsType. More...
 
virtual const char * getName ()=0
 Returns the name of this statistic. More...
 
virtual const char * getUnit ()=0
 Returns the unit in which this statistic is measured. More...
 
virtual bool isCounter ()=0
 Returns true if this statistic is a counter; false if its a gauge. More...
 
virtual bool isLargerBetter ()=0
 Returns true if a larger statistic value indicates better performance. More...
 

Detailed Description

Describes an individual statistic whose value is updated by an application and may be archived by Geode.

These descriptions are gathered together in a StatisticsType.

To get an instance of this interface use an instance of StatisticsFactory.

StatisticDescriptors are naturally ordered by their name.

Member Function Documentation

virtual const char* apache::geode::statistics::StatisticDescriptor::getDescription ( )
pure virtual

Returns a description of this statistic.

virtual int32_t apache::geode::statistics::StatisticDescriptor::getId ( )
pure virtual

Returns the id of this statistic in a StatisticsType.

The id is initialized when its statistics type is created.

virtual const char* apache::geode::statistics::StatisticDescriptor::getName ( )
pure virtual

Returns the name of this statistic.

virtual const char* apache::geode::statistics::StatisticDescriptor::getUnit ( )
pure virtual

Returns the unit in which this statistic is measured.

virtual bool apache::geode::statistics::StatisticDescriptor::isCounter ( )
pure virtual

Returns true if this statistic is a counter; false if its a gauge.

Counter statistics have values that always increase. Gauge statistics have unconstrained values.

virtual bool apache::geode::statistics::StatisticDescriptor::isLargerBetter ( )
pure virtual

Returns true if a larger statistic value indicates better performance.


Pivotal GemFire C++ Cache API Documentation