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.
Public Member Functions | |
virtual void | Close () |
virtual double | GetDouble (String^ name) |
virtual double | GetDouble (StatisticDescriptor^ descriptor) |
virtual double | GetDouble (int32_t id) |
virtual int32_t | GetInt (String^ name) |
virtual int32_t | GetInt (StatisticDescriptor^ descriptor) |
virtual int32_t | GetInt (int32_t id) |
virtual int64_t | GetLong (String^ name) |
virtual int64_t | GetLong (StatisticDescriptor^ descriptor) |
virtual int64_t | GetLong (int32_t id) |
virtual int64_t | GetRawBits (StatisticDescriptor^ descriptor) |
virtual double | IncDouble (String^ name, double delta) |
virtual double | IncDouble (StatisticDescriptor^ descriptor, double delta) |
virtual double | IncDouble (int32_t id, double delta) |
virtual int32_t | IncInt (String^ name, int32_t delta) |
virtual int32_t | IncInt (StatisticDescriptor^ descriptor, int32_t delta) |
virtual int32_t | IncInt (int32_t id, int32_t delta) |
virtual int64_t | IncLong (String^ name, int64_t delta) |
virtual int64_t | IncLong (StatisticDescriptor^ descriptor, int64_t delta) |
virtual int64_t | IncLong (int32_t id, int64_t delta) |
virtual StatisticDescriptor^ | NameToDescriptor (String^ name) |
virtual int32_t | NameToId (String^ name) |
virtual void | SetDouble (StatisticDescriptor^ descriptor, double value) |
virtual void | SetDouble (String^ name, double value) |
virtual void | SetDouble (int32_t id, double value) |
virtual void | SetInt (StatisticDescriptor^ descriptor, int32_t value) |
virtual void | SetInt (String^ name, int32_t value) |
virtual void | SetInt (int32_t id, int32_t value) |
virtual void | SetLong (String^ name, int64_t value) |
virtual void | SetLong (StatisticDescriptor^ descriptor, int64_t value) |
virtual void | SetLong (int32_t id, int64_t value) |
Properties | |
virtual bool | IsAtomic [get] |
virtual bool | IsClosed [get] |
virtual bool | IsShared [get] |
virtual int64_t | NumericId [get] |
virtual String^ | TextId [get] |
virtual StatisticsType^ | Type [get] |
virtual int64_t | UniqueId [get] |
virtual void GemStone::GemFire::Cache::Statistics::Close | ( | ) | [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 double GemStone::GemFire::Cache::Statistics::GetDouble | ( | String^ | name | ) | [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 double GemStone::GemFire::Cache::Statistics::GetDouble | ( | StatisticDescriptor^ | descriptor | ) | [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 double GemStone::GemFire::Cache::Statistics::GetDouble | ( | int32_t | id | ) | [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 int32_t GemStone::GemFire::Cache::Statistics::GetInt | ( | String^ | name | ) | [virtual] |
Returns the value of the statistic of type int
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 int32_t GemStone::GemFire::Cache::Statistics::GetInt | ( | StatisticDescriptor^ | descriptor | ) | [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 . |
virtual int32_t GemStone::GemFire::Cache::Statistics::GetInt | ( | int32_t | id | ) | [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 int64_t GemStone::GemFire::Cache::Statistics::GetLong | ( | String^ | name | ) | [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 int64_t GemStone::GemFire::Cache::Statistics::GetLong | ( | StatisticDescriptor^ | descriptor | ) | [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 int64_t GemStone::GemFire::Cache::Statistics::GetLong | ( | int32_t | id | ) | [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 int64_t GemStone::GemFire::Cache::Statistics::GetRawBits | ( | StatisticDescriptor^ | descriptor | ) | [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 double GemStone::GemFire::Cache::Statistics::IncDouble | ( | String^ | name, | |
double | delta | |||
) | [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 double GemStone::GemFire::Cache::Statistics::IncDouble | ( | StatisticDescriptor^ | descriptor, | |
double | delta | |||
) | [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 double GemStone::GemFire::Cache::Statistics::IncDouble | ( | int32_t | id, | |
double | delta | |||
) | [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 int32_t GemStone::GemFire::Cache::Statistics::IncInt | ( | String^ | name, | |
int32_t | delta | |||
) | [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 int32_t GemStone::GemFire::Cache::Statistics::IncInt | ( | StatisticDescriptor^ | descriptor, | |
int32_t | delta | |||
) | [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 int32_t GemStone::GemFire::Cache::Statistics::IncInt | ( | int32_t | id, | |
int32_t | delta | |||
) | [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 int64_t GemStone::GemFire::Cache::Statistics::IncLong | ( | String^ | name, | |
int64_t | delta | |||
) | [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 int64_t GemStone::GemFire::Cache::Statistics::IncLong | ( | StatisticDescriptor^ | descriptor, | |
int64_t | delta | |||
) | [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 int64_t GemStone::GemFire::Cache::Statistics::IncLong | ( | int32_t | id, | |
int64_t | delta | |||
) | [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 StatisticDescriptor ^ GemStone::GemFire::Cache::Statistics::NameToDescriptor | ( | String^ | name | ) | [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. |
virtual int32_t GemStone::GemFire::Cache::Statistics::NameToId | ( | String^ | name | ) | [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. |
virtual void GemStone::GemFire::Cache::Statistics::SetDouble | ( | StatisticDescriptor^ | descriptor, | |
double | value | |||
) | [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 void GemStone::GemFire::Cache::Statistics::SetDouble | ( | String^ | name, | |
double | value | |||
) | [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 void GemStone::GemFire::Cache::Statistics::SetDouble | ( | int32_t | id, | |
double | value | |||
) | [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 void GemStone::GemFire::Cache::Statistics::SetInt | ( | StatisticDescriptor^ | descriptor, | |
int32_t | value | |||
) | [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 void GemStone::GemFire::Cache::Statistics::SetInt | ( | String^ | name, | |
int32_t | value | |||
) | [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 void GemStone::GemFire::Cache::Statistics::SetInt | ( | int32_t | id, | |
int32_t | value | |||
) | [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 void GemStone::GemFire::Cache::Statistics::SetLong | ( | String^ | name, | |
int64_t | value | |||
) | [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 void GemStone::GemFire::Cache::Statistics::SetLong | ( | StatisticDescriptor^ | descriptor, | |
int64_t | value | |||
) | [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 void GemStone::GemFire::Cache::Statistics::SetLong | ( | int32_t | id, | |
int64_t | value | |||
) | [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. |
virtual bool GemStone::GemFire::Cache::Statistics::IsAtomic [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.
virtual bool GemStone::GemFire::Cache::Statistics::IsClosed [get] |
Returns true if the instance has been close closed.
virtual bool GemStone::GemFire::Cache::Statistics::IsShared [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.
virtual int64_t GemStone::GemFire::Cache::Statistics::NumericId [get] |
Gets the number associated with this instance that helps identify it.
virtual String^ GemStone::GemFire::Cache::Statistics::TextId [get] |
Gets the text associated with this instance that helps identify it.
virtual StatisticsType^ GemStone::GemFire::Cache::Statistics::Type [get] |
Gets the StatisticsType of this instance.
virtual int64_t GemStone::GemFire::Cache::Statistics::UniqueId [get] |
Gets a value that uniquely identifies this statistics.