GemStone::GemFire::Cache::Generic::CacheStatistics Class Reference

Inherits GemStone::GemFire::Cache::Generic::Internal::SBWrap< gemfire::CacheStatistics >.


Detailed Description

Defines common statistical information for both the region and its entries.

All of these methods may throw a CacheClosedException, RegionDestroyedException, or EntryDestroyedException.

See also:
Region.Statistics, RegionEntry.Statistics


Protected Member Functions

void _SetNativePtr (gemfire::CacheStatistics *nativeptr)
void AssignPtr (gemfire::CacheStatistics *nativeptr)
void InternalCleanup ()
void SetPtr (gemfire::CacheStatistics *nativeptr)

Properties

uint32_t LastAccessedTime [get]
uint32_t LastModifiedTime [get]

Member Function Documentation

void GemStone::GemFire::Cache::Generic::Internal::SBWrap< gemfire::CacheStatistics >::_SetNativePtr ( gemfire::CacheStatistics *  nativeptr  )  [inline, protected, inherited]

Set the native pointer to the new object without doing a preserveSB(). DO NOT USE UNLESS YOU KNOW WHAT YOU ARE DOING.

void GemStone::GemFire::Cache::Generic::Internal::SBWrap< gemfire::CacheStatistics >::AssignPtr ( gemfire::CacheStatistics *  nativeptr  )  [inline, protected, inherited]

Used to assign the native pointer to a new object.

Note the order of preserveSB() and releaseSB(). This handles the corner case when m_nativeptr is same as nativeptr.

void GemStone::GemFire::Cache::Generic::Internal::SBWrap< gemfire::CacheStatistics >::InternalCleanup (  )  [inline, protected, inherited]

Internal cleanup function invoked by dispose/finalizer.

void GemStone::GemFire::Cache::Generic::Internal::SBWrap< gemfire::CacheStatistics >::SetPtr ( gemfire::CacheStatistics *  nativeptr  )  [inline, protected, inherited]

Used to set the native pointer to a new object. This should only be used when you know that the underlying object is NULL.


Property Documentation

uint32_t GemStone::GemFire::Cache::Generic::CacheStatistics::LastAccessedTime [get]

For an entry, returns the last time it was accessed via Region.Get. For a region, returns the last time any of its entries or the entries of its subregions were accessed with Region.Get.

Any modifications will also update the LastAccessedTime, so LastAccessedTime is always greater than or equal to LastModifiedTime. The LastAccessedTime on a region is propagated upward to parent regions, transitively, to the the root region.

The number is expressed as the number of milliseconds since January 1, 1970. The granularity may be as coarse as 100ms, so the accuracy may be off by up to 50ms.

Returns:
the last access time of the region or the entry's value; returns 0 if entry is invalid or access time is uninitialized.
See also:
Region.Get, LastModifiedTime

uint32_t GemStone::GemFire::Cache::Generic::CacheStatistics::LastModifiedTime [get]

For an entry, returns the time that the entry's value was last modified. For a region, returns the last time any of the region's entries' values or the values in subregions' entries were modified.

The modification may have been initiated locally, or it may have been an update distributed from another cache. It may also have been a new value provided by a loader. The modification time on a region is propagated upward to parent regions, transitively, to the root region.

The number is expressed as the number of milliseconds since January 1, 1970. The granularity may be as coarse as 100ms, so the accuracy may be off by up to 50ms.

Entry and subregion creation will update the modification time on a region, but Region.Destroy, Region.DestroyRegion, Region.Invalidate, and Region.InvalidateRegion do not update the modification time.

Returns:
the last modification time of the region or the entry; returns 0 if the entry is invalid or the modification time is uninitialized.
See also:
Region.Put, Region.Get, Region.Create, Region.CreateSubRegion


GemFire C++ Cache .NET API Documentation