public interface GCPersistence extends Persistence
| Modifier and Type | Method and Description |
|---|---|
boolean |
markCNEMap(Id id)
Mark a child node entry map.
|
boolean |
markCommit(Id id)
Mark a commit.
|
boolean |
markNode(Id id)
Mark a node.
|
void |
replaceCommit(Id id,
Commit commit)
Replace a commit.
|
void |
start()
Start a GC cycle.
|
int |
sweep()
Sweep all objects that are not marked and were written before the GC started.
|
initialize, readCNEMap, readCommit, readIds, readNode, writeCNEMap, writeCommit, writeHead, writeNodevoid start()
sweep().boolean markCommit(Id id) throws Exception
id - commit idtrue if the commit was not marked before;
false otherwiseException - if an error occursvoid replaceCommit(Id id, Commit commit) throws Exception
id - commit idcommit - the commitException - if an error occursboolean markNode(Id id) throws Exception
id - node idtrue if the node was not marked before;
false otherwiseException - if an error occursboolean markCNEMap(Id id) throws Exception
id - child node entry map idtrue if the child node entry map was not marked before;
false otherwiseException - if an error occursCopyright © 2012-2014 The Apache Software Foundation. All Rights Reserved.