|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.jackrabbit.mk.store.CopyingGC
public class CopyingGC
Revision garbage collector that copies reachable revisions from a "from" revision store to a "to" revision store. It assumes that both stores share the same blob store. In the current design, the head revision and all the nodes it references are reachable.
| Constructor Summary | |
|---|---|
CopyingGC(RevisionStore rsFrom,
RevisionStore rsTo)
Create a new instance of this class. |
|
| Method Summary | |
|---|---|
void |
gc()
|
ChildNodeEntriesMap |
getCNEMap(Id id)
|
StoredCommit |
getCommit(Id id)
|
StoredCommit |
getHeadCommit()
|
Id |
getHeadCommitId()
|
Id |
getId(NodeState node)
Adapts the given NodeState to the corresponding identifier. |
StoredNode |
getNode(Id id)
|
NodeState |
getNodeState(StoredNode node)
Adapts the given StoredNode to a corresponding
NodeState instance. |
StoredNode |
getRootNode(Id commitId)
|
void |
lockHead()
Lock the head. |
Id |
putCNEMap(ChildNodeEntriesMap map)
|
Id |
putHeadCommit(MutableCommit commit)
Put a new head commit. |
Id |
putNode(MutableNode node)
|
void |
unlockHead()
Unlock the head. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public CopyingGC(RevisionStore rsFrom,
RevisionStore rsTo)
rsFrom - from storersTo - to store| Method Detail |
|---|
public void gc()
public NodeState getNodeState(StoredNode node)
RevisionProviderStoredNode to a corresponding
NodeState instance.
getNodeState in interface RevisionProvidernode - stored node instance
public Id getId(NodeState node)
RevisionProviderNodeState to the corresponding identifier.
getId in interface RevisionProvidernode - node state
public StoredNode getNode(Id id)
throws NotFoundException,
Exception
getNode in interface RevisionProviderNotFoundException
Exception
public StoredCommit getCommit(Id id)
throws NotFoundException,
Exception
getCommit in interface RevisionProviderNotFoundException
Exception
public ChildNodeEntriesMap getCNEMap(Id id)
throws NotFoundException,
Exception
getCNEMap in interface RevisionProviderNotFoundException
Exception
public StoredNode getRootNode(Id commitId)
throws NotFoundException,
Exception
getRootNode in interface RevisionProviderNotFoundException
Exception
public StoredCommit getHeadCommit()
throws Exception
getHeadCommit in interface RevisionProviderException
public Id getHeadCommitId()
throws Exception
getHeadCommitId in interface RevisionProviderException
public Id putNode(MutableNode node)
throws Exception
putNode in interface RevisionStoreException
public Id putCNEMap(ChildNodeEntriesMap map)
throws Exception
putCNEMap in interface RevisionStoreExceptionpublic void lockHead()
RevisionStore
lockHead in interface RevisionStoreRevisionStore.putHeadCommit(MutableCommit)
public Id putHeadCommit(MutableCommit commit)
throws Exception
RevisionStore
putHeadCommit in interface RevisionStorecommit - commit
Exception - if an error occursRevisionStore.lockHead()public void unlockHead()
RevisionStore
unlockHead in interface RevisionStore
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||