org.das2.dataset
Class LimitCountDataSetCache

java.lang.Object
  extended by org.das2.dataset.AbstractDataSetCache
      extended by org.das2.dataset.LimitCountDataSetCache
All Implemented Interfaces:
DataSetCache

public class LimitCountDataSetCache
extends AbstractDataSetCache


Nested Class Summary
 
Nested classes/interfaces inherited from class org.das2.dataset.AbstractDataSetCache
AbstractDataSetCache.Entry
 
Field Summary
protected  AbstractDataSetCache.Entry[] buffer
           
 
Fields inherited from class org.das2.dataset.AbstractDataSetCache
hits, misses
 
Constructor Summary
LimitCountDataSetCache(int count)
          Creates a new instance of StandardDataStreamCache
 
Method Summary
 double calcHitRate()
           
 boolean haveStoredImpl(DataSetDescriptor dsd, CacheTag cacheTag)
           
 void reset()
          reset the internal state of the cache
 DataSet retrieveImpl(DataSetDescriptor dsd, CacheTag cacheTag)
           
 void store(DataSetDescriptor dsd, CacheTag cacheTag, DataSet data)
           
 java.lang.String toString()
           
 
Methods inherited from class org.das2.dataset.AbstractDataSetCache
cacheValue, coalese, haveStored, isResetCache, retrieve, setResetCache
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

buffer

protected AbstractDataSetCache.Entry[] buffer
Constructor Detail

LimitCountDataSetCache

public LimitCountDataSetCache(int count)
Creates a new instance of StandardDataStreamCache

Method Detail

store

public void store(DataSetDescriptor dsd,
                  CacheTag cacheTag,
                  DataSet data)
Specified by:
store in interface DataSetCache
Specified by:
store in class AbstractDataSetCache

haveStoredImpl

public boolean haveStoredImpl(DataSetDescriptor dsd,
                              CacheTag cacheTag)

retrieveImpl

public DataSet retrieveImpl(DataSetDescriptor dsd,
                            CacheTag cacheTag)

reset

public void reset()
Description copied from class: AbstractDataSetCache
reset the internal state of the cache

Specified by:
reset in interface DataSetCache
Specified by:
reset in class AbstractDataSetCache

calcHitRate

public double calcHitRate()

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object