|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.das2.dataset.AbstractDataSetCache
public abstract class AbstractDataSetCache
Keeps keep track of cache statistics and to give consistent log messages, and provides the Entry class.
Nested Class Summary | |
---|---|
protected class |
AbstractDataSetCache.Entry
|
Field Summary | |
---|---|
int |
hits
|
int |
misses
|
Constructor Summary | |
---|---|
AbstractDataSetCache()
|
Method Summary | |
---|---|
protected long |
cacheValue(AbstractDataSetCache.Entry e)
return a measure of the utility of the entry, presumably so that it may be swapped out when a resource limit is met. |
DataSet |
coalese(java.util.List result)
return the DataSet described by the set of DataSets if possible. |
boolean |
haveStored(DataSetDescriptor dsd,
CacheTag cacheTag)
|
boolean |
isResetCache()
Getter for property resetCache. |
abstract void |
reset()
reset the internal state of the cache |
DataSet |
retrieve(DataSetDescriptor dsd,
CacheTag cacheTag)
|
void |
setResetCache(boolean resetCache)
Setter for property resetCache. |
abstract void |
store(DataSetDescriptor dsd,
CacheTag cacheTag,
DataSet data)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public int hits
public int misses
Constructor Detail |
---|
public AbstractDataSetCache()
Method Detail |
---|
public abstract void store(DataSetDescriptor dsd, CacheTag cacheTag, DataSet data)
store
in interface DataSetCache
public boolean haveStored(DataSetDescriptor dsd, CacheTag cacheTag)
haveStored
in interface DataSetCache
protected long cacheValue(AbstractDataSetCache.Entry e)
public DataSet retrieve(DataSetDescriptor dsd, CacheTag cacheTag)
retrieve
in interface DataSetCache
public abstract void reset()
reset
in interface DataSetCache
public DataSet coalese(java.util.List result)
java.lang.IllegalArgumentException
- if a subset is not continous,
non-overlapping, and of the same resolution. Removes
elements from the list that are not needed for the set.public boolean isResetCache()
public void setResetCache(boolean resetCache)
resetCache
- New value of property resetCache.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |