|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.openjpa.datacache.CacheStatistics.Default
public static class CacheStatistics.Default
A default implementation.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from interface org.apache.openjpa.datacache.CacheStatistics |
|---|
CacheStatistics.Default |
| Constructor Summary | |
|---|---|
CacheStatistics.Default()
|
|
| Method Summary | |
|---|---|
long |
getHitCount()
Gets number of total read requests that has been found in cache since last reset. |
long |
getHitCount(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(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(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(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(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(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. |
Date |
since()
Gets the time of last reset. |
Date |
start()
Gets the time of start. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public CacheStatistics.Default()
| Method Detail |
|---|
public long getReadCount()
CacheStatistics
getReadCount in interface CacheStatisticspublic long getHitCount()
CacheStatistics
getHitCount in interface CacheStatisticspublic long getWriteCount()
CacheStatistics
getWriteCount in interface CacheStatisticspublic long getTotalReadCount()
CacheStatistics
getTotalReadCount in interface CacheStatisticspublic long getTotalHitCount()
CacheStatistics
getTotalHitCount in interface CacheStatisticspublic long getTotalWriteCount()
CacheStatistics
getTotalWriteCount in interface CacheStatisticspublic long getReadCount(Class c)
CacheStatistics
getReadCount in interface CacheStatisticspublic long getHitCount(Class c)
CacheStatistics
getHitCount in interface CacheStatisticspublic long getWriteCount(Class c)
CacheStatistics
getWriteCount in interface CacheStatisticspublic long getTotalReadCount(Class c)
CacheStatistics
getTotalReadCount in interface CacheStatisticspublic long getTotalHitCount(Class c)
CacheStatistics
getTotalHitCount in interface CacheStatisticspublic long getTotalWriteCount(Class c)
CacheStatistics
getTotalWriteCount in interface CacheStatisticspublic Date since()
CacheStatistics
since in interface CacheStatisticspublic Date start()
CacheStatistics
start in interface CacheStatisticspublic void reset()
CacheStatistics
reset in interface CacheStatisticspublic boolean isEnabled()
CacheStatistics
isEnabled in interface CacheStatistics
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||