public class DefaultTierStatistics extends java.lang.Object implements TierStatistics
Constructor and Description |
---|
DefaultTierStatistics(Cache<?,?> cache,
java.lang.String tierName) |
Modifier and Type | Method and Description |
---|---|
void |
clear()
Reset the values for this tier.
|
long |
getAllocatedByteSize()
How many bytes are currently allocated (occupied or not) for this tier
|
long |
getEvictions()
How many evictions occurred on the tier since its creation or the latest
TierStatistics.clear() |
long |
getExpirations()
How many expirations occurred on the tier since its creation or the latest
TierStatistics.clear() |
long |
getHits()
How many hits occurred on the tier since its creation or the latest
TierStatistics.clear() |
java.util.Map<java.lang.String,ValueStatistic<?>> |
getKnownStatistics()
List of statistics tracked on this cache
|
long |
getMappings()
Number of entries currently in this tier
|
long |
getMisses()
How many misses occurred on the tier since its creation or the latest
TierStatistics.clear() |
long |
getOccupiedByteSize()
How many bytes are currently occupied for this tier
|
long |
getPuts()
How many puts occurred on the tier since its creation or the latest
TierStatistics.clear() |
long |
getRemovals()
How many removals occurred on the tier since its creation or the latest
TierStatistics.clear() |
public DefaultTierStatistics(Cache<?,?> cache, java.lang.String tierName)
public java.util.Map<java.lang.String,ValueStatistic<?>> getKnownStatistics()
TierStatistics
getKnownStatistics
in interface TierStatistics
public void clear()
mapping, allocatedMemory, occupiedMemory
but be reset since it doesn't make sense.clear
in interface TierStatistics
public long getHits()
TierStatistics
TierStatistics.clear()
getHits
in interface TierStatistics
public long getMisses()
TierStatistics
TierStatistics.clear()
getMisses
in interface TierStatistics
public long getPuts()
TierStatistics
TierStatistics.clear()
getPuts
in interface TierStatistics
public long getRemovals()
TierStatistics
TierStatistics.clear()
getRemovals
in interface TierStatistics
public long getEvictions()
TierStatistics
TierStatistics.clear()
getEvictions
in interface TierStatistics
public long getExpirations()
TierStatistics
TierStatistics.clear()
getExpirations
in interface TierStatistics
public long getMappings()
TierStatistics
getMappings
in interface TierStatistics
public long getAllocatedByteSize()
TierStatistics
getAllocatedByteSize
in interface TierStatistics
public long getOccupiedByteSize()
TierStatistics
getOccupiedByteSize
in interface TierStatistics