com.hazelcast.monitor.impl
Class LocalCacheStatsImpl

java.lang.Object
  extended by com.hazelcast.monitor.impl.LocalCacheStatsImpl
All Implemented Interfaces:
JsonSerializable, LocalCacheStats, LocalInstanceStats

public class LocalCacheStatsImpl
extends Object
implements LocalCacheStats

Default implementation of LocalCacheStats This class just provides serialization/deserialization methods to be used in MemberState implementation while sending/receiving statistics to/from Management center. There are no calculations are done in this class, all statistics gathered from CacheStatistics No setter methods are provided, all class fields supposed to be populated either by a CacheStatistics or while deserialization process (fromJson(com.eclipsesource.json.JsonObject).

See Also:
CacheStatistics

Field Summary
 
Fields inherited from interface com.hazelcast.monitor.LocalInstanceStats
STAT_NOT_AVAILABLE
 
Constructor Summary
LocalCacheStatsImpl()
           
LocalCacheStatsImpl(CacheStatistics cacheStatistics)
           
 
Method Summary
 void fromJson(com.eclipsesource.json.JsonObject json)
           
 float getAverageGetTime()
          Returns the mean time to execute gets on the cache.
 float getAveragePutTime()
          Returns the mean time to execute puts on the cache.
 float getAverageRemoveTime()
          Returns the mean time to execute removes on the cache.
 long getCacheEvictions()
          Returns the number of evictions on the cache.
 long getCacheGets()
          Returns the number of gets on the cache.
 float getCacheHitPercentage()
          Returns the percentage of hits (successful get operations) on the cache.
 long getCacheHits()
          Returns the number of hits (successful get operations) on the cache.
 long getCacheMisses()
          Returns the number of missed cache accesses on the cache.
 float getCacheMissPercentage()
          Returns the percentage of missed cache accesses on the cache.
 long getCachePuts()
          Returns the number of puts to the queue.
 long getCacheRemovals()
          Returns the number of removals from the queue.
 long getCreationTime()
           
 com.eclipsesource.json.JsonObject toJson()
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

LocalCacheStatsImpl

public LocalCacheStatsImpl()

LocalCacheStatsImpl

public LocalCacheStatsImpl(CacheStatistics cacheStatistics)
Method Detail

getCacheHits

public long getCacheHits()
Description copied from interface: LocalCacheStats
Returns the number of hits (successful get operations) on the cache.

Specified by:
getCacheHits in interface LocalCacheStats
Returns:
the number of hits (successful get operations) on the cache

getCacheHitPercentage

public float getCacheHitPercentage()
Description copied from interface: LocalCacheStats
Returns the percentage of hits (successful get operations) on the cache.

Specified by:
getCacheHitPercentage in interface LocalCacheStats
Returns:
the percentage of hits (successful get operations) on the cache

getCacheMisses

public long getCacheMisses()
Description copied from interface: LocalCacheStats
Returns the number of missed cache accesses on the cache.

Specified by:
getCacheMisses in interface LocalCacheStats
Returns:
the number of missed cache accesses on the cache

getCacheMissPercentage

public float getCacheMissPercentage()
Description copied from interface: LocalCacheStats
Returns the percentage of missed cache accesses on the cache.

Specified by:
getCacheMissPercentage in interface LocalCacheStats
Returns:
the percentage of missed cache accesses on the cache

getCacheGets

public long getCacheGets()
Description copied from interface: LocalCacheStats
Returns the number of gets on the cache.

Specified by:
getCacheGets in interface LocalCacheStats
Returns:
the number of gets on the cache

getCachePuts

public long getCachePuts()
Description copied from interface: LocalCacheStats
Returns the number of puts to the queue.

Specified by:
getCachePuts in interface LocalCacheStats
Returns:
the number of puts to the queue

getCacheRemovals

public long getCacheRemovals()
Description copied from interface: LocalCacheStats
Returns the number of removals from the queue.

Specified by:
getCacheRemovals in interface LocalCacheStats
Returns:
the number of removals from the queue

getCacheEvictions

public long getCacheEvictions()
Description copied from interface: LocalCacheStats
Returns the number of evictions on the cache.

Specified by:
getCacheEvictions in interface LocalCacheStats
Returns:
the number of evictions on the cache

getAverageGetTime

public float getAverageGetTime()
Description copied from interface: LocalCacheStats
Returns the mean time to execute gets on the cache.

Specified by:
getAverageGetTime in interface LocalCacheStats
Returns:
the mean time in µs to execute gets on the cache

getAveragePutTime

public float getAveragePutTime()
Description copied from interface: LocalCacheStats
Returns the mean time to execute puts on the cache.

Specified by:
getAveragePutTime in interface LocalCacheStats
Returns:
the mean time in µs to execute puts on the cache

getAverageRemoveTime

public float getAverageRemoveTime()
Description copied from interface: LocalCacheStats
Returns the mean time to execute removes on the cache.

Specified by:
getAverageRemoveTime in interface LocalCacheStats
Returns:
the mean time in µs to execute removes on the cache

getCreationTime

public long getCreationTime()
Specified by:
getCreationTime in interface LocalInstanceStats

toJson

public com.eclipsesource.json.JsonObject toJson()
Specified by:
toJson in interface JsonSerializable

fromJson

public void fromJson(com.eclipsesource.json.JsonObject json)
Specified by:
fromJson in interface JsonSerializable

toString

public String toString()
Overrides:
toString in class Object


Copyright © 2015 Hazelcast, Inc.. All Rights Reserved.