VMware GemFire Native C++ Reference
9.1
|
An instantiation of an existing StatisticsType
object with methods for setting, incrementing and getting individual StatisticDescriptor
values.
More...
Public Member Functions | |
virtual void | close ()=0 |
Closes these statistics. More... | |
virtual double | getDouble (int32_t id)=0 |
Returns the value of the identified statistic of type double . More... | |
virtual double | getDouble (StatisticDescriptor *descriptor)=0 |
Returns the value of the described statistic of type double . More... | |
virtual double | getDouble (char *name)=0 |
Returns the value of the statistic of type double at the given name. More... | |
virtual int32_t | getInt (int32_t id)=0 |
Returns the value of the identified statistic of type int . More... | |
virtual int32_t | getInt (apache::geode::statistics::StatisticDescriptor *descriptor)=0 |
Returns the value of the described statistic of type int . More... | |
virtual int32_t | getInt (char *name)=0 |
Returns the value of the statistic of type int at the given name. More... | |
virtual int64_t | getLong (int32_t id)=0 |
Returns the value of the identified statistic of type long . More... | |
virtual int64_t | getLong (StatisticDescriptor *descriptor)=0 |
Returns the value of the described statistic of type long . More... | |
virtual int64_t | getLong (char *name)=0 |
Returns the value of the statistic of type long at the given name. More... | |
virtual int64_t | getNumericId ()=0 |
Gets the number associated with this instance that helps identify it. More... | |
virtual int64_t | getRawBits (StatisticDescriptor *descriptor)=0 |
Returns the value of the identified statistic. More... | |
virtual const char * | getTextId ()=0 |
Gets the text associated with this instance that helps identify it. More... | |
virtual StatisticsType * | getType ()=0 |
Gets the StatisticsType of this instance. More... | |
virtual int64_t | getUniqueId ()=0 |
Gets a value that uniquely identifies this statistics. More... | |
virtual double | incDouble (int32_t id, double delta)=0 |
Increments the value of the identified statistic of type double by the given amount. More... | |
virtual double | incDouble (StatisticDescriptor *descriptor, double delta)=0 |
Increments the value of the described statistic of type double by the given amount. More... | |
virtual double | incDouble (char *name, double delta)=0 |
Increments the value of the statistic of type double with the given name by a given amount. More... | |
virtual int32_t | incInt (int32_t id, int32_t delta)=0 |
Returns the bits that represent the raw value of the named statistic. More... | |
virtual int32_t | incInt (StatisticDescriptor *descriptor, int32_t delta)=0 |
Increments the value of the described statistic of type int by the given amount. More... | |
virtual int32_t | incInt (char *name, int32_t delta)=0 |
Increments the value of the statistic of type int with the given name by a given amount. More... | |
virtual int64_t | incLong (int32_t id, int64_t delta)=0 |
Increments the value of the identified statistic of type long by the given amount. More... | |
virtual int64_t | incLong (StatisticDescriptor *descriptor, int64_t delta)=0 |
Increments the value of the described statistic of type long by the given amount. More... | |
virtual int64_t | incLong (char *name, int64_t delta)=0 |
Increments the value of the statistic of type long with the given name by a given amount. More... | |
virtual bool | isAtomic ()=0 |
Returns true if modifications are atomic. More... | |
virtual bool | isClosed ()=0 |
Returns true if the instance has been closed. More... | |
virtual bool | isShared ()=0 |
Returns true if the data for this instance is stored in shared memory. More... | |
virtual StatisticDescriptor * | nameToDescriptor (const char *name)=0 |
Returns the descriptor of the statistic with the given name in this statistics instance. More... | |
virtual int32_t | nameToId (const char *name)=0 |
Returns the id of the statistic with the given name in this statistics instance. More... | |
virtual void | setDouble (int32_t id, double value)=0 |
Sets the value of a statistic with the given id whose type is double . More... | |
virtual void | setDouble (apache::geode::statistics::StatisticDescriptor *descriptor, double value)=0 |
Sets the value of a described statistic of type double More... | |
virtual void | setDouble (char *name, double value)=0 |
Sets the value of a named statistic of type double . More... | |
virtual void | setInt (int32_t id, int32_t value)=0 |
Sets the value of a statistic with the given id whose type is int . More... | |
virtual void | setInt (char *name, int32_t value)=0 |
Sets the value of a named statistic of type int More... | |
virtual void | setInt (StatisticDescriptor *descriptor, int32_t value)=0 |
Sets the value of a described statistic of type int More... | |
virtual void | setLong (int32_t id, int64_t value)=0 |
Sets the value of a statistic with the given id whose type is long . More... | |
virtual void | setLong (StatisticDescriptor *descriptor, int64_t value)=0 |
Sets the value of a described statistic of type long More... | |
virtual void | setLong (char *name, int64_t value)=0 |
Sets the value of a named statistic of type long . More... | |
Protected Member Functions | |
virtual | ~Statistics ()=0 |
Destructor is protected to prevent direct deletion. More... | |
An instantiation of an existing StatisticsType
object with methods for setting, incrementing and getting individual StatisticDescriptor
values.
|
protectedpure virtual |
Destructor is protected to prevent direct deletion.
Use close().
|
pure virtual |
Closes these statistics.
After statistics have been closed, they are no longer archived. A value access on a closed statistics always results in zero. A value modification on a closed statistics is ignored.
|
pure virtual |
Returns the value of the identified statistic of type double
.
id | a statistic id obtained with nameToId or StatisticsType#nameToId. |
IllegalArgumentException | If the id is invalid. |
|
pure virtual |
Returns the value of the described statistic of type double
.
descriptor | a statistic descriptor obtained with nameToDescriptor or StatisticsType#nameToDescriptor. |
IllegalArgumentException | If no statistic exists with the specified descriptor or if the described statistic is not of type double . |
|
pure virtual |
Returns the value of the statistic of type double
at the given name.
name | statistic name |
IllegalArgumentException | If no statistic exists with name name or if the statistic named name is not of type double . |
|
pure virtual |
Returns the value of the identified statistic of type int
.
id | a statistic id obtained with nameToId or StatisticsType#nameToId. |
IllegalArgumentException | If the id is invalid. |
|
pure virtual |
Returns the value of the described statistic of type int
.
descriptor | a statistic descriptor obtained with nameToDescriptor or StatisticsType#nameToDescriptor. |
IllegalArgumentException | If no statistic exists with the specified descriptor or if the described statistic is not of type int . |
|
pure virtual |
Returns the value of the statistic of type int
at the given name.
name | statistic name |
IllegalArgumentException | If no statistic exists with name name or if the statistic named name is not of type int . |
|
pure virtual |
Returns the value of the identified statistic of type long
.
id | a statistic id obtained with nameToId or StatisticsType#nameToId. |
IllegalArgumentException | If the id is invalid. |
|
pure virtual |
Returns the value of the described statistic of type long
.
descriptor | a statistic descriptor obtained with nameToDescriptor or StatisticsType#nameToDescriptor. |
IllegalArgumentException | If no statistic exists with the specified descriptor or if the described statistic is not of type long . |
|
pure virtual |
Returns the value of the statistic of type long
at the given name.
name | statistic name |
IllegalArgumentException | If no statistic exists with name name or if the statistic named name is not of type long . |
|
pure virtual |
Gets the number associated with this instance that helps identify it.
|
pure virtual |
Returns the value of the identified statistic.
descriptor | a statistic descriptor obtained with nameToDescriptor or StatisticsType#nameToDescriptor. |
IllegalArgumentException | If the described statistic does not exist Returns the value of the named statistic. |
IllegalArgumentException | If the named statistic does not exist Returns the bits that represent the raw value of the described statistic. |
descriptor | a statistic descriptor obtained with nameToDescriptor or StatisticsType#nameToDescriptor. |
IllegalArgumentException | If the described statistic does not exist |
|
pure virtual |
Gets the text associated with this instance that helps identify it.
|
pure virtual |
Gets the StatisticsType of this instance.
|
pure virtual |
Gets a value that uniquely identifies this statistics.
|
pure virtual |
Increments the value of the identified statistic of type double
by the given amount.
id | a statistic id obtained with nameToId or StatisticsType#nameToId. |
delta | change value to be added |
IllegalArgumentException | If the id is invalid. |
|
pure virtual |
Increments the value of the described statistic of type double
by the given amount.
descriptor | a statistic descriptor obtained with nameToDescriptor or StatisticsType#nameToDescriptor. |
delta | change value to be added |
IllegalArgumentException | If no statistic exists with the given descriptor or if the described statistic is not of type double . |
|
pure virtual |
Increments the value of the statistic of type double
with the given name by a given amount.
name | statistic name |
delta | change value to be added |
IllegalArgumentException | If no statistic exists with name name or if the statistic named name is not of type double . |
|
pure virtual |
Returns the bits that represent the raw value of the named statistic.
IllegalArgumentException | If the named statistic does not exist Increments the value of the identified statistic of type int by the given amount. |
id | a statistic id obtained with nameToId or StatisticsType#nameToId. |
delta | change value to be added |
IllegalArgumentException | If the id is invalid. |
|
pure virtual |
Increments the value of the described statistic of type int
by the given amount.
descriptor | a statistic descriptor obtained with nameToDescriptor or StatisticsType#nameToDescriptor. |
delta | change value to be added |
IllegalArgumentException | If no statistic exists with the given descriptor or if the described statistic is not of type int . |
|
pure virtual |
Increments the value of the statistic of type int
with the given name by a given amount.
name | statistic name |
delta | change value to be added |
IllegalArgumentException | If no statistic exists with name name or if the statistic named name is not of type int . |
|
pure virtual |
Increments the value of the identified statistic of type long
by the given amount.
id | a statistic id obtained with nameToId or StatisticsType#nameToId. |
delta | change value to be added |
IllegalArgumentException | If the id is invalid. |
|
pure virtual |
Increments the value of the described statistic of type long
by the given amount.
descriptor | a statistic descriptor obtained with nameToDescriptor or StatisticsType#nameToDescriptor. |
delta | change value to be added |
IllegalArgumentException | If no statistic exists with the given descriptor or if the described statistic is not of type long . |
|
pure virtual |
Increments the value of the statistic of type long
with the given name by a given amount.
name | statistic name |
delta | change value to be added |
IllegalArgumentException | If no statistic exists with name name or if the statistic named name is not of type long . |
|
pure virtual |
Returns true if modifications are atomic.
This means that multiple threads can safely modify this instance without additional synchronization.
Returns false if modifications are not atomic. This means that modifications to this instance are cheaper but not thread safe.
Note that all instances that are shared are also atomic.
|
pure virtual |
Returns true if the instance has been closed.
|
pure virtual |
Returns true if the data for this instance is stored in shared memory.
Returns false if the data is store in local memory.
Note that all instances that are shared are also atomic.
|
pure virtual |
Returns the descriptor of the statistic with the given name in this statistics instance.
name | statistic name |
IllegalArgumentException | No statistic named name exists in this statistics instance. |
|
pure virtual |
Returns the id of the statistic with the given name in this statistics instance.
name | statistic name |
IllegalArgumentException | No statistic named name exists in this statistics instance. |
|
pure virtual |
Sets the value of a statistic with the given id
whose type is double
.
id | a statistic id obtained with nameToId or StatisticsType#nameToId. |
value | value to set |
IllegalArgumentException | If the id is invalid. |
|
pure virtual |
Sets the value of a described statistic of type double
descriptor | a statistic descriptor obtained with nameToDescriptor or StatisticsType#nameToDescriptor. |
value | value to set |
IllegalArgumentException | If no statistic exists for the given descriptor or if the described statistic is not of type double . |
|
pure virtual |
Sets the value of a named statistic of type double
.
name | statistic name |
value | value to set |
IllegalArgumentException | If no statistic exists named name or if the statistic with name name is not of type double . |
|
pure virtual |
Sets the value of a statistic with the given id
whose type is int
.
id | a statistic id obtained with nameToId or StatisticsType#nameToId. |
value | value to set |
IllegalArgumentException | If the id is invalid. |
|
pure virtual |
Sets the value of a named statistic of type int
name | statistic name |
value | value to set |
IllegalArgumentException | If no statistic exists named name or if the statistic with name name is not of type int . |
|
pure virtual |
Sets the value of a described statistic of type int
descriptor | a statistic descriptor obtained with nameToDescriptor or StatisticsType#nameToDescriptor. |
value | value to set |
IllegalArgumentException | If no statistic exists for the given descriptor or if the described statistic is not of type int . |
|
pure virtual |
Sets the value of a statistic with the given id
whose type is long
.
id | a statistic id obtained with nameToId or StatisticsType#nameToId. |
value | value to set |
IllegalArgumentException | If the id is invalid. |
|
pure virtual |
Sets the value of a described statistic of type long
descriptor | a statistic descriptor obtained with nameToDescriptor or StatisticsType#nameToDescriptor. |
value | value to set |
IllegalArgumentException | If no statistic exists for the given descriptor or if the described statistic is not of type long . |
|
pure virtual |
Sets the value of a named statistic of type long
.
name | statistic name |
value | value to set |
IllegalArgumentException | If no statistic exists named name or if the statistic with name name is not of type long . |