public interface RevisionStore extends RevisionProvider
| Modifier and Type | Interface and Description |
|---|---|
static class |
RevisionStore.PutToken
Token that must be created first before invoking any put operation.
|
| Modifier and Type | Method and Description |
|---|---|
RevisionStore.PutToken |
createPutToken()
Create a put token.
|
void |
lockHead()
Lock the head.
|
Id |
putCNEMap(RevisionStore.PutToken token,
ChildNodeEntries map) |
Id |
putCommit(RevisionStore.PutToken token,
MutableCommit commit)
Store a new commit.
|
Id |
putHeadCommit(RevisionStore.PutToken token,
MutableCommit commit,
Id branchRootId,
Id branchRevId)
Put a new head commit.
|
Id |
putNode(RevisionStore.PutToken token,
MutableNode node) |
void |
unlockHead()
Unlock the head.
|
getCNEMap, getCommit, getHeadCommit, getHeadCommitId, getId, getNode, getNodeState, getRootNodeRevisionStore.PutToken createPutToken()
Id putNode(RevisionStore.PutToken token, MutableNode node) throws Exception
ExceptionId putCNEMap(RevisionStore.PutToken token, ChildNodeEntries map) throws Exception
Exceptionvoid lockHead()
Id putHeadCommit(RevisionStore.PutToken token, MutableCommit commit, Id branchRootId, Id branchRevId) throws Exception
token - put tokencommit - commitbranchRootId - former branch root id, if this is a merge; otherwise
nullbranchRevId - current branch head, i.e. last commit on this branch,
if this is a merge; otherwise nullException - if an error occurslockHead()void unlockHead()
lockHead()Id putCommit(RevisionStore.PutToken token, MutableCommit commit) throws Exception
putHeadCommit(MutableCommit), this method
does not affect the current head commit and therefore doesn't
require a lock on the head.token - put tokencommit - commitException - if an error occursCopyright © 2012-2013 The Apache Software Foundation. All Rights Reserved.