|
Kodo 4.2.0 (DEPRECATED) | ||||||||
| 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(OpenJPAConfiguration conf,
DataCache cache)
Provide delegate on construction. |
|
| Method Summary | |
|---|---|
void |
close()
|
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, getAll, 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(OpenJPAConfiguration conf,
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 DataCachePCData get(Object oid)
get in interface DataCacheget in class DelegatingDataCachepublic void close()
close in interface DataCacheclose in interface Closeableclose in class DelegatingDataCache
|
Kodo 4.2.0 (DEPRECATED) | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
This documentation is deprecated and will be removed in the next release of WebLogic Server.