| java.lang.Object com.versant.core.storagemanager.LRUStorageCache
LRUStorageCache | final public class LRUStorageCache implements StorageCache,HasMetrics(Code) | | Count limited StorageCache implementation that uses an LRU algorithm to
limit the number of cached instances and query results.
|
Method Summary | |
public synchronized void | add(Object otx, StatesReturned container) | public synchronized void | add(Object tx, CompiledQuery cq, Object[] params, CachedQueryResult queryData) | public synchronized void | add(Object tx, CompiledQuery cq, Object[] params, int count) | public void | addMetrics(List list) | public synchronized Object | beginTx() | public synchronized boolean | contains(OID oid) | public void | dump(PrintStream out) | public synchronized void | endTx(Object o) | public synchronized void | evict(Object tx, CompiledQuery cq, Object[] params) | public synchronized void | evict(Object otx, OID[] oids, int offset, int length, int expected) | public synchronized void | evict(Object tx, ClassMetaData[] classes, int classCount) | public synchronized void | evictAll(Object tx) | public int | getHitCount() | public int | getMaxObjects() | public int | getMaxQueries() | public int | getMissCount() | public int | getObjectCount() | public int | getQueryHitCount() | public int | getQueryMissCount() | public synchronized CachedQueryResult | getQueryResult(CompiledQuery cq, Object[] params) | public synchronized int | getQueryResultCount(CompiledQuery cq, Object[] params) | public synchronized State | getState(OID oid, FetchGroup fetchGroup) | public boolean | isEnabled() | public boolean | isQueryCacheEnabled() | public void | sampleMetrics(int[][] buf, int pos) | public synchronized void | setEnabled(boolean enabled) | public void | setJDOMetaData(ModelMetaData jmd) | public synchronized void | setMaxObjects(int maxObjects) | public synchronized void | setMaxQueries(int maxQueries) | public void | setQueryCacheEnabled(boolean queryCacheEnabled) |
LRUStorageCache | public LRUStorageCache()(Code) | | |
contains | public synchronized boolean contains(OID oid)(Code) | | |
evict | public synchronized void evict(Object otx, OID[] oids, int offset, int length, int expected)(Code) | | |
getHitCount | public int getHitCount()(Code) | | |
getMaxObjects | public int getMaxObjects()(Code) | | |
getMaxQueries | public int getMaxQueries()(Code) | | |
getMissCount | public int getMissCount()(Code) | | |
getObjectCount | public int getObjectCount()(Code) | | |
getQueryHitCount | public int getQueryHitCount()(Code) | | |
getQueryMissCount | public int getQueryMissCount()(Code) | | |
isEnabled | public boolean isEnabled()(Code) | | |
isQueryCacheEnabled | public boolean isQueryCacheEnabled()(Code) | | |
sampleMetrics | public void sampleMetrics(int[][] buf, int pos)(Code) | | |
setEnabled | public synchronized void setEnabled(boolean enabled)(Code) | | |
setMaxObjects | public synchronized void setMaxObjects(int maxObjects)(Code) | | |
setMaxQueries | public synchronized void setMaxQueries(int maxQueries)(Code) | | |
setQueryCacheEnabled | public void setQueryCacheEnabled(boolean queryCacheEnabled)(Code) | | |
|
|