org.apache.openjpa.datacache
public static class CacheStatistics.Default extends java.lang.Object implements CacheStatistics
CacheStatistics.Default
Constructor and Description |
---|
CacheStatistics.Default() |
Modifier and Type | Method and Description |
---|---|
long |
getHitCount()
Gets number of total read requests that has been found in cache since
last reset.
|
long |
getHitCount(java.lang.Class c)
Gets number of total read requests that has been found in cache for the
given class since last reset.
|
long |
getReadCount()
Gets number of total read requests since last reset.
|
long |
getReadCount(java.lang.Class c)
Gets number of total read requests for the given class since last reset.
|
long |
getTotalHitCount()
Gets number of total read requests that has been found in cache since
start.
|
long |
getTotalHitCount(java.lang.Class c)
Gets number of total read requests that has been found in cache for the
given class since start.
|
long |
getTotalReadCount()
Gets number of total read requests since start.
|
long |
getTotalReadCount(java.lang.Class c)
Gets number of total read requests for the given class since start.
|
long |
getTotalWriteCount()
Gets number of total write requests since start.
|
long |
getTotalWriteCount(java.lang.Class c)
Gets number of total write requests for the given class since start.
|
long |
getWriteCount()
Gets number of total write requests since last reset.
|
long |
getWriteCount(java.lang.Class c)
Gets number of total write requests for the given class since last reset.
|
boolean |
isEnabled()
Returns whether or not statistics will be collected.
|
void |
reset()
Clears all accumulated statistics.
|
java.util.Date |
since()
Gets the time of last reset.
|
java.util.Date |
start()
Gets the time of start.
|
public long getReadCount()
CacheStatistics
getReadCount
in interface CacheStatistics
public long getHitCount()
CacheStatistics
getHitCount
in interface CacheStatistics
public long getWriteCount()
CacheStatistics
getWriteCount
in interface CacheStatistics
public long getTotalReadCount()
CacheStatistics
getTotalReadCount
in interface CacheStatistics
public long getTotalHitCount()
CacheStatistics
getTotalHitCount
in interface CacheStatistics
public long getTotalWriteCount()
CacheStatistics
getTotalWriteCount
in interface CacheStatistics
public long getReadCount(java.lang.Class c)
CacheStatistics
getReadCount
in interface CacheStatistics
public long getHitCount(java.lang.Class c)
CacheStatistics
getHitCount
in interface CacheStatistics
public long getWriteCount(java.lang.Class c)
CacheStatistics
getWriteCount
in interface CacheStatistics
public long getTotalReadCount(java.lang.Class c)
CacheStatistics
getTotalReadCount
in interface CacheStatistics
public long getTotalHitCount(java.lang.Class c)
CacheStatistics
getTotalHitCount
in interface CacheStatistics
public long getTotalWriteCount(java.lang.Class c)
CacheStatistics
getTotalWriteCount
in interface CacheStatistics
public java.util.Date since()
CacheStatistics
since
in interface CacheStatistics
public java.util.Date start()
CacheStatistics
start
in interface CacheStatistics
public void reset()
CacheStatistics
reset
in interface CacheStatistics
public boolean isEnabled()
CacheStatistics
isEnabled
in interface CacheStatistics