|
Kodo 4.1.0 generated on October 9 2006 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.apache.openjpa.datacache.DelegatingDataCache
kodo.datacache.MonitoringDataCache
public class MonitoringDataCache
Delegating cache that provides monitoring statistics.
| Field Summary |
|---|
| Fields inherited from interface org.apache.openjpa.datacache.DataCache |
|---|
NAME_DEFAULT |
| Constructor Summary | |
|---|---|
MonitoringDataCache(org.apache.openjpa.conf.OpenJPAConfiguration conf,
org.apache.openjpa.datacache.DataCache cache)
Provide delegate on construction. |
|
| Method Summary | |
|---|---|
void |
close()
|
org.apache.openjpa.datacache.DataCachePCData |
get(Object oid)
|
double |
getHitRate()
Returns the percentage of hits. |
int |
getHits()
Returns the number of cache hits for invocations of the get(java.lang.Object)
method. |
int |
getMisses()
Returns the number of cache misses for invocations of the get(java.lang.Object)
method. |
Collection |
getStatistics()
Get statistics exported by this object. |
String |
getStatisticsString()
Returns a localized string containing the number of hits, the number of misses, and the hit ratio ( hits / (hits+misses)). |
void |
resetStatistics()
Reset the caching statistics. |
| Methods inherited from class org.apache.openjpa.datacache.DelegatingDataCache |
|---|
addExpirationListener, clear, commit, contains, containsAll, equals, getDelegate, getInnermostDelegate, getName, hashCode, initialize, pin, pinAll, pinAll, put, remove, removeAll, removeAll, removeExpirationListener, setName, translate, unpin, unpinAll, unpinAll, update, writeLock, writeUnlock |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public MonitoringDataCache(org.apache.openjpa.conf.OpenJPAConfiguration conf,
org.apache.openjpa.datacache.DataCache cache)
| Method Detail |
|---|
public int getHits()
get(java.lang.Object)
method.
public int getMisses()
get(java.lang.Object)
method.
public double getHitRate()
public String getStatisticsString()
hits / (hits+misses)).
public Collection getStatistics()
getStatistics in interface StatisticsProviderpublic void resetStatistics()
public org.apache.openjpa.datacache.DataCachePCData get(Object oid)
get in interface org.apache.openjpa.datacache.DataCacheget in class org.apache.openjpa.datacache.DelegatingDataCachepublic void close()
close in interface org.apache.openjpa.datacache.DataCacheclose in interface org.apache.openjpa.lib.util.Closeableclose in class org.apache.openjpa.datacache.DelegatingDataCache
|
Kodo 4.1.0 generated on October 9 2006 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||