kodo.util
Class MonitoringCacheMap
java.lang.Object
   org.apache.openjpa.util.CacheMap
org.apache.openjpa.util.CacheMap
       kodo.util.MonitoringCacheMap
kodo.util.MonitoringCacheMap
- All Implemented Interfaces: 
- StatisticsProvider, Map
- public class MonitoringCacheMap 
- extends CacheMap- implements StatisticsProvider
Extends standard cache map to keep monitoring statistics.
 
| Nested classes/interfaces inherited from interface java.util.Map | 
| Map.Entry<K,V> | 
 
 
 
 
 
| Methods inherited from class org.apache.openjpa.util.CacheMap | 
| containsKey, containsValue, entryAdded, entryRemoved, entrySet, get, getCacheSize, getPinnedKeys, getSoftReferenceSize, isEmpty, isLRU, keySet, pin, put, putAll, readLock, readUnlock, remove, setCacheSize, setSoftReferenceSize, size, toString, unpin, values, writeLock, writeUnlock | 
 
 
 
MonitoringCacheMap
public MonitoringCacheMap()
MonitoringCacheMap
public MonitoringCacheMap(boolean lru,
                          int max)
MonitoringCacheMap
public MonitoringCacheMap(boolean lru,
                          int max,
                          int size,
                          float load)
getStatistics
public Collection getStatistics()
- Return cache statistics.
 
- 
- Specified by:
- getStatisticsin interface- StatisticsProvider
 
- 
 
resetStatistics
public void resetStatistics()
- Reset cache statistics.
 
- 
 
- 
 
clear
public void clear()
- 
- Specified by:
- clearin interface- Map
- Overrides:
- clearin class- CacheMap
 
- 
 
cacheMapOverflowRemoved
protected void cacheMapOverflowRemoved(Object key,
                                       Object value)
- 
- Overrides:
- cacheMapOverflowRemovedin class- CacheMap
 
- 
 
softMapOverflowRemoved
protected void softMapOverflowRemoved(Object key,
                                      Object value)
- 
- Overrides:
- softMapOverflowRemovedin class- CacheMap
 
- 
 
softMapValueExpired
protected void softMapValueExpired(Object key)
- 
- Overrides:
- softMapValueExpiredin class- CacheMap
 
- 
 
put
protected Object put(Map map,
                     Object key,
                     Object value)
- 
- Overrides:
- putin class- CacheMap
 
- 
 
remove
protected Object remove(Map map,
                        Object key)
- 
- Overrides:
- removein class- CacheMap
 
- 
 
Copyright 2001-2006 BEA Systems, Inc. All Rights Reserved.