|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.jackrabbit.mk.store.DefaultRevisionStore
public class DefaultRevisionStore
Default revision store implementation, passing calls to a Persistence
and a BlobStore, respectively and providing caching.
| Field Summary | |
|---|---|
static String |
CACHE_SIZE
|
static int |
DEFAULT_CACHE_SIZE
|
| Constructor Summary | |
|---|---|
DefaultRevisionStore(Persistence pm)
|
|
| Method Summary | |
|---|---|
void |
close()
|
protected int |
determineInitialCacheSize()
|
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 |
initialize()
|
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. |
protected void |
verifyInitialized()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final String CACHE_SIZE
public static final int DEFAULT_CACHE_SIZE
| Constructor Detail |
|---|
public DefaultRevisionStore(Persistence pm)
| Method Detail |
|---|
public void initialize()
throws Exception
Exceptionpublic void close()
close in interface Closeableprotected void verifyInitialized()
protected int determineInitialCacheSize()
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 RevisionStorepublic 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 ChildNodeEntriesMap getCNEMap(Id id)
throws NotFoundException,
Exception
getCNEMap in interface RevisionProviderNotFoundException
Exception
public StoredCommit getCommit(Id id)
throws NotFoundException,
Exception
getCommit 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
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||