gemfire_admin::StatisticEvent Class Reference

Inherits gemfire::SharedBase.


Detailed Description

An event delivered to a StatisticListener when a new sample value is available
Author:
Jim Nist

Public Member Functions

const double getDouble ()
 Returns the value of an Double Statistic sample value.
const uint32_t getInt ()
 Returns the value of an Int Statistic sample value.
const int64_t getLong ()
 Returns the value of an Long Statistic sample value.
void preserveSB () const
 Atomically increment reference count.
int32_t refCount ()
 
Returns:
the reference count

void releaseSB () const
 Atomically decrement reference count, the SharedBase object is automatically deleted when its reference count goes to zero.

Protected Member Functions

 StatisticEvent (const double value)
 Creates a new StatisticEvent representing a Double value.
 StatisticEvent (const int64_t value)
 Creates a new StatisticEvent representing a Long value.
 StatisticEvent (const uint32_t value)

Constructor & Destructor Documentation

gemfire_admin::StatisticEvent::StatisticEvent ( const uint32_t  value  )  [protected]

Protected Methods Creates a new StatisticEvent representing an Int value.

gemfire_admin::StatisticEvent::StatisticEvent ( const int64_t  value  )  [protected]

Creates a new StatisticEvent representing a Long value.

gemfire_admin::StatisticEvent::StatisticEvent ( const double  value  )  [protected]

Creates a new StatisticEvent representing a Double value.


Member Function Documentation

const double gemfire_admin::StatisticEvent::getDouble (  ) 

Returns the value of an Double Statistic sample value.

const uint32_t gemfire_admin::StatisticEvent::getInt (  ) 

Returns the value of an Int Statistic sample value.

const int64_t gemfire_admin::StatisticEvent::getLong (  ) 

Returns the value of an Long Statistic sample value.

void gemfire::SharedBase::preserveSB (  )  const [inherited]

Atomically increment reference count.

int32_t gemfire::SharedBase::refCount (  )  [inline, inherited]

Returns:
the reference count

void gemfire::SharedBase::releaseSB (  )  const [inherited]

Atomically decrement reference count, the SharedBase object is automatically deleted when its reference count goes to zero.


GemFire C++ Cache API Documentation