VMware GemFire Native .NET Reference
9.2.4
|
An instantiation of an existing StatisticsType
object with methods for setting, incrementing and getting individual StatisticDescriptor
values.
More...
Inherits UMWrapN< apache::geode::statistics::Statistics >.
Public Member Functions | |
virtual void | Close () |
Closes these statistics. More... | |
virtual double | GetDouble (StatisticDescriptor^ descriptor) |
Returns the value of the described statistic of type double . More... | |
virtual double | GetDouble (String^ name) |
Returns the value of the statistic of type double at the given name. More... | |
virtual double | GetDouble (System::Int32 id) |
Returns the value of the identified statistic of type double . More... | |
virtual System::Int32 | GetInt (StatisticDescriptor^ descriptor) |
Returns the value of the described statistic of type int
. More... | |
virtual System::Int32 | GetInt (String^ name) |
Returns the value of the statistic of type int
at the given name. More... | |
virtual System::Int32 | GetInt (System::Int32 id) |
Returns the value of the identified statistic of type int . More... | |
virtual System::Int64 | GetLong (StatisticDescriptor^ descriptor) |
Returns the value of the described statistic of type long . More... | |
virtual System::Int64 | GetLong (String^ name) |
Returns the value of the statistic of type long at the given name. More... | |
virtual System::Int64 | GetLong (System::Int32 id) |
Returns the value of the identified statistic of type long . More... | |
virtual System::Int64 | GetRawBits (StatisticDescriptor^ descriptor) |
Returns the bits that represent the raw value of the described statistic. More... | |
virtual double | IncDouble (StatisticDescriptor^ descriptor, double delta) |
Increments the value of the described statistic of type double by the given amount. More... | |
virtual double | IncDouble (String^ name, double delta) |
Increments the value of the statistic of type double with the given name by a given amount. More... | |
virtual double | IncDouble (System::Int32 id, double delta) |
Increments the value of the identified statistic of type double by the given amount. More... | |
virtual System::Int32 | IncInt (StatisticDescriptor^ descriptor, System::Int32 delta) |
Increments the value of the described statistic of type int by the given amount. More... | |
virtual System::Int32 | IncInt (String^ name, System::Int32 delta) |
Increments the value of the statistic of type int with the given name by a given amount. More... | |
virtual System::Int32 | IncInt (System::Int32 id, System::Int32 delta) |
Increments the value of the identified statistic of type int by the given amount. More... | |
virtual System::Int64 | IncLong (StatisticDescriptor^ descriptor, System::Int64 delta) |
Increments the value of the described statistic of type long by the given amount. More... | |
virtual System::Int64 | IncLong (String^ name, System::Int64 delta) |
Increments the value of the statistic of type long with the given name by a given amount. More... | |
virtual System::Int64 | IncLong (System::Int32 id, System::Int64 delta) |
Increments the value of the identified statistic of type long by the given amount. More... | |
virtual StatisticDescriptor ^ | NameToDescriptor (String^ name) |
Returns the descriptor of the statistic with the given name in this statistics instance. More... | |
virtual System::Int32 | NameToId (String^ name) |
Returns the id of the statistic with the given name in this statistics instance. More... | |
virtual void | SetDouble (StatisticDescriptor^ descriptor, double value) |
Sets the value of a described statistic of type double More... | |
virtual void | SetDouble (String^ name, double value) |
Sets the value of a named statistic of type double More... | |
virtual void | SetDouble (System::Int32 id, double value) |
Sets the value of a statistic with the given id whose type is double . More... | |
virtual void | SetInt (StatisticDescriptor^ descriptor, System::Int32 value) |
Sets the value of a described statistic of type int More... | |
virtual void | SetInt (String^ name, System::Int32 value) |
Sets the value of a named statistic of type int More... | |
virtual void | SetInt (System::Int32 id, System::Int32 value) |
Sets the value of a statistic with the given id whose type is int . More... | |
virtual void | SetLong (StatisticDescriptor^ descriptor, System::Int64 value) |
Sets the value of a described statistic of type long More... | |
virtual void | SetLong (String^ name, System::Int64 value) |
Sets the value of a named statistic of type long . More... | |
virtual void | SetLong (System::Int32 id, System::Int64 value) |
Sets the value of a statistic with the given id whose type is long . More... | |
Properties | |
virtual bool | IsAtomic [get] |
Returns true if modifications are atomic. More... | |
virtual bool | IsClosed [get] |
Returns true if the instance has been #close closed. More... | |
virtual bool | IsShared [get] |
Returns true if the data for this instance is stored in shared memory. More... | |
virtual System::Int64 | NumericId [get] |
Gets the number associated with this instance that helps identify it. More... | |
virtual String^ | TextId [get] |
Gets the text associated with this instance that helps identify it. More... | |
virtual StatisticsType^ | Type [get] |
Gets the StatisticsType of this instance. More... | |
virtual System::Int64 | UniqueId [get] |
Gets a value that uniquely identifies this statistics. More... | |
An instantiation of an existing StatisticsType
object with methods for setting, incrementing and getting individual StatisticDescriptor
values.
The class is purposefully inherited from UMWrapN and not UMWrap as the destructor of the class is protected, and so it is now not called from inside the InternalCleanup method.
|
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.
|
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 . |
|
virtual |
Returns the value of the statistic of type double
at the given name.
name | statistic name |
IllegalArgumentException | If no statistic exists named name or if the statistic with name name is not of type double . |
|
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. |
|
virtual |
Returns the value of the described statistic of type
.
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 . |
|
virtual |
Returns the value of the statistic of type
at the given name.
name | statistic name |
IllegalArgumentException | If no statistic exists named name or if the statistic with name name is not of type int . |
|
virtual |
Returns the value of the identified statistic of type int
.
whose type is double
.
id | a statistic id obtained with #nameToId or #StatisticsType#nameToId |
IllegalArgumentException | If the id is invalid. |
|
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 . |
|
virtual |
Returns the value of the statistic of type long
at the given name.
name | statistic name |
IllegalArgumentException | If no statistic exists named name or if the statistic with name name is not of type long . |
|
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. |
|
virtual |
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 |
|
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 for the given descriptor or if the described statistic is not of type double . |
|
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 named name or if the statistic with name name is not of type double . |
|
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 | the value of the statistic after it has been incremented |
IllegalArgumentException | If the id is invalid. |
|
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 for the given descriptor or if the described statistic is not of type int . |
|
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 named name or if the statistic with name name is not of type int . |
|
virtual |
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 | the value of the statistic after it has been incremented |
IllegalArgumentException | If the id is invalid. |
|
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 for the given descriptor or if the described statistic is not of type long . |
|
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 named name or if the statistic with name name is not of type long . |
|
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 | the value of the statistic after it has been incremented |
IllegalArgumentException | If the id is invalid. |
|
virtual |
Returns the descriptor of the statistic with the given name in this statistics instance.
name | the statistic name |
IllegalArgumentException | if no statistic named name exists in this statistics instance. |
StatisticsType::nameToId
|
virtual |
Returns the id of the statistic with the given name in this statistics instance.
name | the statistic name |
IllegalArgumentException | if no statistic named name exists in this statistics instance. |
StatisticsType::nameToDescriptor
|
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 . |
|
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 . |
|
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. |
|
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 . |
|
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 . |
|
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. |
|
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 . |
|
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 . |
|
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. |
|
get |
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 #isShared shared are also atomic.
|
get |
Returns true if the instance has been #close closed.
|
get |
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 #isShared shared are also atomic.
|
get |
Gets the number associated with this instance that helps identify it.
|
get |
Gets the text associated with this instance that helps identify it.
|
get |
Gets the StatisticsType of this instance.
|
get |
Gets a value that uniquely identifies this statistics.