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()
CacheStatisticsgetReadCount in interface CacheStatisticspublic long getHitCount()
CacheStatisticsgetHitCount in interface CacheStatisticspublic long getWriteCount()
CacheStatisticsgetWriteCount in interface CacheStatisticspublic long getTotalReadCount()
CacheStatisticsgetTotalReadCount in interface CacheStatisticspublic long getTotalHitCount()
CacheStatisticsgetTotalHitCount in interface CacheStatisticspublic long getTotalWriteCount()
CacheStatisticsgetTotalWriteCount in interface CacheStatisticspublic long getReadCount(java.lang.Class c)
CacheStatisticsgetReadCount in interface CacheStatisticspublic long getHitCount(java.lang.Class c)
CacheStatisticsgetHitCount in interface CacheStatisticspublic long getWriteCount(java.lang.Class c)
CacheStatisticsgetWriteCount in interface CacheStatisticspublic long getTotalReadCount(java.lang.Class c)
CacheStatisticsgetTotalReadCount in interface CacheStatisticspublic long getTotalHitCount(java.lang.Class c)
CacheStatisticsgetTotalHitCount in interface CacheStatisticspublic long getTotalWriteCount(java.lang.Class c)
CacheStatisticsgetTotalWriteCount in interface CacheStatisticspublic java.util.Date since()
CacheStatisticssince in interface CacheStatisticspublic java.util.Date start()
CacheStatisticsstart in interface CacheStatisticspublic void reset()
CacheStatisticsreset in interface CacheStatisticspublic boolean isEnabled()
CacheStatisticsisEnabled in interface CacheStatistics