Package de.hybris.platform.regioncache
Class CacheStatistics
- java.lang.Object
-
- de.hybris.platform.regioncache.CacheStatistics
-
- All Implemented Interfaces:
CacheStatisticsEntry,java.lang.Comparable<java.lang.Object>
public class CacheStatistics extends java.lang.Object implements CacheStatisticsEntry, java.lang.Comparable<java.lang.Object>
Class keeps statistics for single cache region. Statistics are available for each type code used.
Available statistics:
- hits
- misses
- evictions
- invalidations
-
-
Constructor Summary
Constructors Constructor Description CacheStatistics()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclear()Clears all cache statistics.
Method is thread safe but this method is not performed atomically.intcompareTo(java.lang.Object object)FIXME: check mevoidevicted(java.lang.Object typeCode)increments evict count for specified type codevoidfetched(java.lang.Object typeCode)increments load/compute count for specified type codelonggetEvictions()returns eviction counter for all typeslonggetEvictions(java.lang.Object typeCode)intgetFactor()intgetFactor(java.lang.Object typeCode)longgetFetches()How many db loads / computes performedlonggetFetches(java.lang.Object typeCode)longgetHitCount()longgetHits()returns hit counter for all typeslonggetHits(java.lang.Object typeCode)longgetInstanceCount()longgetInstanceCount(java.lang.Object typeCode)longgetInvalidations()returns invalidation counter for all typeslonggetInvalidations(java.lang.Object typeCode)java.lang.StringgetKeyString()longgetMissCount()longgetMisses()returns miss counter for all typeslonggetMisses(java.lang.Object typeCode)java.util.Collection<java.lang.Object>getTypes()returns all type codes used in this statistics holdervoidhit(java.lang.Object typeCode)increments hit count for specified type codevoidinvalidated(java.lang.Object typeCode)increments invalidate count for specified type codevoidmissed(java.lang.Object typeCode)increments miss count for specified type code
-
-
-
Method Detail
-
hit
public void hit(java.lang.Object typeCode)
increments hit count for specified type code
-
fetched
public void fetched(java.lang.Object typeCode)
increments load/compute count for specified type code
-
missed
public void missed(java.lang.Object typeCode)
increments miss count for specified type code
-
evicted
public void evicted(java.lang.Object typeCode)
increments evict count for specified type code
-
invalidated
public void invalidated(java.lang.Object typeCode)
increments invalidate count for specified type code
-
getHits
public long getHits()
returns hit counter for all types
-
getHits
public long getHits(java.lang.Object typeCode)
-
getFetches
public long getFetches()
How many db loads / computes performed
-
getFetches
public long getFetches(java.lang.Object typeCode)
-
getMisses
public long getMisses()
returns miss counter for all types
-
getMisses
public long getMisses(java.lang.Object typeCode)
-
getEvictions
public long getEvictions()
returns eviction counter for all types
-
getEvictions
public long getEvictions(java.lang.Object typeCode)
-
getInvalidations
public long getInvalidations()
returns invalidation counter for all types
-
getInvalidations
public long getInvalidations(java.lang.Object typeCode)
-
getInstanceCount
public long getInstanceCount()
-
getInstanceCount
public long getInstanceCount(java.lang.Object typeCode)
-
getTypes
public java.util.Collection<java.lang.Object> getTypes()
returns all type codes used in this statistics holder
-
clear
public void clear()
Clears all cache statistics.
Method is thread safe but this method is not performed atomically.
-
getKeyString
public java.lang.String getKeyString()
- Specified by:
getKeyStringin interfaceCacheStatisticsEntry
-
getHitCount
public long getHitCount()
- Specified by:
getHitCountin interfaceCacheStatisticsEntry
-
getMissCount
public long getMissCount()
- Specified by:
getMissCountin interfaceCacheStatisticsEntry
-
getFactor
public int getFactor()
- Specified by:
getFactorin interfaceCacheStatisticsEntry
-
getFactor
public int getFactor(java.lang.Object typeCode)
-
compareTo
public int compareTo(java.lang.Object object)
FIXME: check me- Specified by:
compareToin interfacejava.lang.Comparable<java.lang.Object>
-
-