org.apache.jackrabbit.mk.persistence
Class InMemPersistence
java.lang.Object
org.apache.jackrabbit.mk.persistence.InMemPersistence
- All Implemented Interfaces:
- Persistence
public class InMemPersistence
- extends Object
- implements Persistence
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
InMemPersistence
public InMemPersistence()
readHead
public Id readHead()
- Specified by:
readHead in interface Persistence
writeHead
public void writeHead(Id id)
- Specified by:
writeHead in interface Persistence
readNode
public void readNode(StoredNode node)
throws NotFoundException,
Exception
- Description copied from interface:
Persistence
- Read a node from storage.
- Specified by:
readNode in interface Persistence
- Parameters:
node - node to read, with id given in StoredNode.getId()
- Throws:
NotFoundException - if no such node is found
Exception - if some other error occurs
writeNode
public Id writeNode(Node node)
throws Exception
- Specified by:
writeNode in interface Persistence
- Throws:
Exception
readCommit
public StoredCommit readCommit(Id id)
throws NotFoundException
- Specified by:
readCommit in interface Persistence
- Throws:
NotFoundException
writeCommit
public void writeCommit(Id id,
Commit commit)
throws Exception
- Description copied from interface:
Persistence
- Persist a commit, with an id that is selected by the caller.
- Specified by:
writeCommit in interface Persistence
- Parameters:
id - commit idcommit - commit
- Throws:
Exception - if an error occurs
readCNEMap
public ChildNodeEntriesMap readCNEMap(Id id)
throws NotFoundException
- Specified by:
readCNEMap in interface Persistence
- Throws:
NotFoundException
writeCNEMap
public Id writeCNEMap(ChildNodeEntriesMap map)
throws Exception
- Specified by:
writeCNEMap in interface Persistence
- Throws:
Exception
Copyright © 2012 The Apache Software Foundation. All Rights Reserved.