|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.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 | |
---|---|
(package private) void |
disable()
|
(package private) void |
enable()
|
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. |
(package private) void |
newGet(Class cls,
boolean hit)
|
(package private) void |
newPut(Class cls)
|
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 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(Class c)
CacheStatistics
getReadCount
in interface CacheStatistics
public long getHitCount(Class c)
CacheStatistics
getHitCount
in interface CacheStatistics
public long getWriteCount(Class c)
CacheStatistics
getWriteCount
in interface CacheStatistics
public long getTotalReadCount(Class c)
CacheStatistics
getTotalReadCount
in interface CacheStatistics
public long getTotalHitCount(Class c)
CacheStatistics
getTotalHitCount
in interface CacheStatistics
public long getTotalWriteCount(Class c)
CacheStatistics
getTotalWriteCount
in interface CacheStatistics
public Date since()
CacheStatistics
since
in interface CacheStatistics
public Date start()
CacheStatistics
start
in interface CacheStatistics
public void reset()
CacheStatistics
reset
in interface CacheStatistics
public boolean isEnabled()
CacheStatistics
isEnabled
in interface CacheStatistics
void enable()
void disable()
void newGet(Class cls, boolean hit)
void newPut(Class cls)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |