org.apache.openjpa.datacache
public interface CacheStatistics extends java.io.Serializable
java.lang.Object
. All per-class statistics depends on
determining the runtime type of the instance being cached. If it is not
possible to determine the runtime type from the given context, the statistics
is registered under generic java.lang.Object
.Modifier and Type | Interface and Description |
---|---|
static class |
CacheStatistics.Default
A default implementation.
|
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.
|
long getReadCount()
long getHitCount()
long getWriteCount()
long getTotalReadCount()
long getTotalHitCount()
long getTotalWriteCount()
long getReadCount(java.lang.Class c)
long getHitCount(java.lang.Class c)
long getWriteCount(java.lang.Class c)
long getTotalReadCount(java.lang.Class c)
long getTotalHitCount(java.lang.Class c)
long getTotalWriteCount(java.lang.Class c)
java.util.Date since()
java.util.Date start()
void reset()
boolean isEnabled()