|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--ostore.archive.TputGenerateChkptTest.RemoveGuidsHelper
RemoveGuidsHelper
removes guids from all previously
'archived' blocks.
RemoveGuidsHelper
predicate methods test whether to continue
descending btree (in DFS order), then call the callback method.
The callback method removes the guids.
NOTE all blocks should be in cache. If not, we Carp.die.
Constructor Summary | |
---|---|
TputGenerateChkptTest.RemoveGuidsHelper(SecureHash versionVHash,
DataCache cache,
String stageName,
SecureHash self_guid,
NodeId nodeId)
Constructor: Initialize class based on specified parameters. |
Method Summary | |
---|---|
Object |
callback(BtreeNode node,
HandleStore handleStore)
callback remove child guid pointers and remove
fhash from child block. |
boolean |
predicate(BtreeNode inNode,
int index,
HandleStore handleStore)
predicate is a boolean function that determines whether
or not RemoveGuidsHelper will continue down the current path in the
B-tree. |
void |
record(BtreeNode node,
Object returnObj,
int index,
HandleStore handleStore,
DataCache cache)
During a DFS, this method is called to record a result produced by the Callback interface. |
void |
reset(SecureHash versionVHash,
DataCache cache,
String stageName,
SecureHash self_guid,
NodeId node_id)
reset versionVHash. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public TputGenerateChkptTest.RemoveGuidsHelper(SecureHash versionVHash, DataCache cache, String stageName, SecureHash self_guid, NodeId nodeId)
versionVHash
- version VHash for update.Method Detail |
public void reset(SecureHash versionVHash, DataCache cache, String stageName, SecureHash self_guid, NodeId node_id)
reset
versionVHash.
versionVHash
- version VHash for object.public Object callback(BtreeNode node, HandleStore handleStore) throws CacheException
callback
remove child guid pointers and remove
fhash from child block.
callback
in interface Btree.Callback
node
- current block.handleStore
- data structure that stores handles to blocks.
record
method. Currently the
callback
returns null.
CacheException
public boolean predicate(BtreeNode inNode, int index, HandleStore handleStore) throws CacheException
predicate
is a boolean function that determines whether
or not RemoveGuidsHelper will continue down the current path in the
B-tree. Specifically, this returns true iff the Block in question
has no GUID.
predicate
in interface Btree.Predicate
inNode
- current block of type BtreeNode.index
- index of child block to test.handleStore
- data structure that stores handles to blocks.
CacheException
public void record(BtreeNode node, Object returnObj, int index, HandleStore handleStore, DataCache cache)
record
in interface Btree.Record
node
- = variable of type BtreeNode.returnObj
- = the returned obj from the callback routine.index
- = index of child node.handleStore
- =HandleStore handle_store);
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |