|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--ostore.cache.LRUCache
This class is now just a cheesy way to get ahold of the functional interface to the buffer cache. The old LRUCache (which extended DataCache) is now called LRUCacheImpl. I admit the name of this class is now poor, given its function, but I didn't want to go changing all of the code that used it right now.
Constructor Summary | |
---|---|
LRUCache()
|
Method Summary | |
---|---|
static DataCache |
getInstance(NodeId node_id)
return an instance of the cache and initialize the database if we are not using java io. |
static DataCache |
removeInstance(NodeId node_id)
Deletes the cache instance corresponding
to a NodeId . |
static void |
setCacheSize(DataCache dc,
int size)
A hack; only the BTreeTest and DataObjectTest use this function. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public LRUCache()
Method Detail |
public static DataCache getInstance(NodeId node_id)
public static DataCache removeInstance(NodeId node_id)
cache
instance corresponding
to a NodeId
. Should be called only when a node
is going down and going to come up again with a new node id.
Use very carefully!
node_id
- The NodeId
which parameterizes a
virtual SandStorm instance.public static void setCacheSize(DataCache dc, int size)
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |