|
SolarMetric Kodo JDO 3.4.1 generated on May 30 2006 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object
|
+--serp.util.AbstractEventManager
|
+--kodo.datacache.AbstractQueryCache
|
+--kodo.datacache.QueryCacheImpl
Default query cache implementation.
| Fields inherited from class kodo.datacache.AbstractQueryCache |
conf, log |
| Constructor Summary | |
QueryCacheImpl()
|
|
| Method Summary | |
protected void |
clearInternal()
Clear the cache. |
void |
endConfiguration()
Invoked upon completion of bean property configuration for this object. |
CacheMap |
getCacheMap()
Returns the underlying CacheMap that this
QueryCacheImpl is using. |
int |
getCacheSize()
Returns the maximum number of unpinned objects to keep hard references to. |
protected QueryResult |
getInternal(QueryKey qk)
Return the list for the given key. |
int |
getSoftReferenceSize()
Returns the maximum number of unpinned objects to keep soft references to. |
protected Collection |
keySet()
Return a threadsafe view of the keys in this cache. |
protected boolean |
pinInternal(QueryKey qk)
Pin an object to the cache. |
protected QueryResult |
putInternal(QueryKey qk,
QueryResult result)
Add the given result to the cache, returning the old result under the given key. |
protected QueryResult |
removeInternal(QueryKey qk)
Remove the result under the given key from the cache. |
void |
setCacheSize(int size)
Sets the maximum number of unpinned objects to keep hard references to. |
void |
setSoftReferenceSize(int size)
Sets the maximum number of unpinned objects to keep soft references to. |
protected boolean |
unpinInternal(QueryKey qk)
Unpin an object from the cache. |
| Methods inherited from class kodo.datacache.AbstractQueryCache |
addExpirationListener, afterCommit, classesChanged, clear, close, closeWithoutClear, fireEvent, get, getHitRate, getHits, getMisses, getStatistics, getStatisticsString, isClosed, keyRemoved, newListenerCollection, pin, put, remove, removeAllInternal, removeExpirationListener, resetStatistics, setConfiguration, startConfiguration, unpin |
| Methods inherited from class serp.util.AbstractEventManager |
fireEvent, getListeners, hasListener, hasListeners, registerListener, removeListener |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface kodo.event.RemoteCommitListener |
afterCommit, close |
| Constructor Detail |
public QueryCacheImpl()
| Method Detail |
public CacheMap getCacheMap()
Returns the underlying CacheMap that this
QueryCacheImpl is using. This is not an
unmodifiable view on the map, so care should be taken with
this reference. Implementations should probably not mess with
the contents of the cache, but should only use this reference
to obtain cache metrics. Additionally, this map may contain
expired data. Removal of timed-out data is done in a lazy
fashion, so the actual size of the map may be greater than the
number of non-expired query results in cache.
Methods that manipulate the cache map should synchronize on the map.
public int getCacheSize()
public void setCacheSize(int size)
size, then this method will result in the cache
flushing old values.public int getSoftReferenceSize()
-1.public void setSoftReferenceSize(int size)
size, then this method will result in the cache
flushing values.protected QueryResult getInternal(QueryKey qk)
AbstractQueryCachegetInternal in class AbstractQueryCache
protected QueryResult putInternal(QueryKey qk,
QueryResult result)
AbstractQueryCacheputInternal in class AbstractQueryCacheprotected QueryResult removeInternal(QueryKey qk)
AbstractQueryCacheremoveInternal in class AbstractQueryCacheprotected void clearInternal()
AbstractQueryCacheclearInternal in class AbstractQueryCacheprotected boolean pinInternal(QueryKey qk)
AbstractQueryCachepinInternal in class AbstractQueryCacheprotected boolean unpinInternal(QueryKey qk)
AbstractQueryCacheunpinInternal in class AbstractQueryCacheprotected Collection keySet()
AbstractQueryCachekeySet in class AbstractQueryCachepublic void endConfiguration()
ConfigurableendConfiguration in class AbstractQueryCache
|
SolarMetric Kodo JDO 3.4.1 generated on May 30 2006 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||