|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface GCPersistence
Advanced persistence implementation offering GC support.
The persistence implementation must ensure that objects written between start()
and sweep() are not swept, in other words, they must be marked implicitely.
| Method Summary | |
|---|---|
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. |
| Methods inherited from interface org.apache.jackrabbit.mk.persistence.Persistence |
|---|
initialize, readCNEMap, readCommit, readIds, readNode, writeCNEMap, writeCommit, writeHead, writeNode |
| Methods inherited from interface java.io.Closeable |
|---|
close |
| Method Detail |
|---|
void start()
sweep().
boolean markCommit(Id id)
throws Exception
id - commit id
true if the commit was not marked before;
false otherwise
Exception - if an error occurs
void replaceCommit(Id id,
Commit commit)
throws Exception
id - commit id -
Exception - if an error occurs
boolean markNode(Id id)
throws Exception
id - node id
true if the node was not marked before;
false otherwise
Exception - if an error occurs
boolean markCNEMap(Id id)
throws Exception
id - child node entry map id
true if the child node entry map was not marked before;
false otherwise
Exception - if an error occurs
int sweep()
throws Exception
-1 if number is unknown
Exception - if an error occurs
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||