com.hazelcast.monitor.impl
Class NearCacheStatsImpl

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

public class NearCacheStatsImpl
extends Object
implements NearCacheStats


Field Summary
 
Fields inherited from interface com.hazelcast.monitor.LocalInstanceStats
STAT_NOT_AVAILABLE
 
Constructor Summary
NearCacheStatsImpl()
           
 
Method Summary
 void fromJson(com.eclipsesource.json.JsonObject json)
           
 long getCreationTime()
          Returns the creation time of this NearCache on this member
 long getHits()
          Returns the number of hits (reads) of the locally owned entries.
 long getMisses()
          Returns the number of misses of the locally owned entries.
 long getOwnedEntryCount()
          Returns the number of entries owned by this member.
 long getOwnedEntryMemoryCost()
          Returns memory cost (number of bytes) of entries in this cache.
 double getRatio()
          Returns the hit/miss ratio of the locally owned entries.
 void incrementHits()
           
 void incrementMisses()
           
 void setHits(long hits)
           
 void setOwnedEntryCount(long ownedEntryCount)
           
 void setOwnedEntryMemoryCost(long ownedEntryMemoryCost)
           
 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

NearCacheStatsImpl

public NearCacheStatsImpl()
Method Detail

getCreationTime

public long getCreationTime()
Description copied from interface: NearCacheStats
Returns the creation time of this NearCache on this member

Specified by:
getCreationTime in interface LocalInstanceStats
Specified by:
getCreationTime in interface NearCacheStats
Returns:
creation time of this NearCache on this member

getOwnedEntryCount

public long getOwnedEntryCount()
Description copied from interface: NearCacheStats
Returns the number of entries owned by this member.

Specified by:
getOwnedEntryCount in interface NearCacheStats
Returns:
number of entries owned by this member.

setOwnedEntryCount

public void setOwnedEntryCount(long ownedEntryCount)

getOwnedEntryMemoryCost

public long getOwnedEntryMemoryCost()
Description copied from interface: NearCacheStats
Returns memory cost (number of bytes) of entries in this cache.

Specified by:
getOwnedEntryMemoryCost in interface NearCacheStats
Returns:
memory cost (number of bytes) of entries in this cache.

getHits

public long getHits()
Description copied from interface: NearCacheStats
Returns the number of hits (reads) of the locally owned entries.

Specified by:
getHits in interface NearCacheStats
Returns:
number of hits (reads).

getMisses

public long getMisses()
Description copied from interface: NearCacheStats
Returns the number of misses of the locally owned entries.

Specified by:
getMisses in interface NearCacheStats
Returns:
number of misses.

setHits

public void setHits(long hits)

getRatio

public double getRatio()
Description copied from interface: NearCacheStats
Returns the hit/miss ratio of the locally owned entries.

Specified by:
getRatio in interface NearCacheStats
Returns:
hit/miss ratio.

setOwnedEntryMemoryCost

public void setOwnedEntryMemoryCost(long ownedEntryMemoryCost)

incrementMisses

public void incrementMisses()

incrementHits

public void incrementHits()

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.