| Constructor and Description |
|---|
MongoMicroKernel(MongoConnection mongoConnection,
NodeStore nodeStore,
org.apache.jackrabbit.mk.blobs.BlobStore blobStore)
Constructs a new
MongoMicroKernel. |
| Modifier and Type | Method and Description |
|---|---|
String |
branch(String trunkRevisionId) |
String |
commit(String path,
String jsonDiff,
String revisionId,
String message) |
String |
diff(String fromRevisionId,
String toRevisionId,
String path,
int depth) |
void |
dispose() |
org.apache.jackrabbit.mk.blobs.BlobStore |
getBlobStore()
Returns the underlying blob store.
|
long |
getChildNodeCount(String path,
String revisionId) |
String |
getHeadRevision() |
String |
getJournal(String fromRevisionId,
String toRevisionId,
String path) |
long |
getLength(String blobId) |
String |
getNodes(String path,
String revisionId,
int depth,
long offset,
int maxChildNodes,
String filter) |
NodeStore |
getNodeStore()
Returns the underlying node store.
|
String |
getRevisionHistory(long since,
int maxEntries,
String path) |
String |
merge(String branchRevisionId,
String message) |
boolean |
nodeExists(String path,
String revisionId) |
int |
read(String blobId,
long pos,
byte[] buff,
int off,
int length) |
String |
waitForCommit(String oldHeadRevisionId,
long timeout) |
String |
write(InputStream in) |
public MongoMicroKernel(MongoConnection mongoConnection, NodeStore nodeStore, org.apache.jackrabbit.mk.blobs.BlobStore blobStore)
MongoMicroKernel.mongoConnection - Connection to MongoDB.nodeStore - The NodeStore.blobStore - The BlobStore.public void dispose()
public org.apache.jackrabbit.mk.blobs.BlobStore getBlobStore()
public NodeStore getNodeStore()
public String branch(String trunkRevisionId) throws org.apache.jackrabbit.mk.api.MicroKernelException
branch in interface org.apache.jackrabbit.mk.api.MicroKernelorg.apache.jackrabbit.mk.api.MicroKernelExceptionpublic String commit(String path, String jsonDiff, String revisionId, String message) throws org.apache.jackrabbit.mk.api.MicroKernelException
commit in interface org.apache.jackrabbit.mk.api.MicroKernelorg.apache.jackrabbit.mk.api.MicroKernelExceptionpublic String diff(String fromRevisionId, String toRevisionId, String path, int depth) throws org.apache.jackrabbit.mk.api.MicroKernelException
diff in interface org.apache.jackrabbit.mk.api.MicroKernelorg.apache.jackrabbit.mk.api.MicroKernelExceptionpublic long getChildNodeCount(String path, String revisionId) throws org.apache.jackrabbit.mk.api.MicroKernelException
getChildNodeCount in interface org.apache.jackrabbit.mk.api.MicroKernelorg.apache.jackrabbit.mk.api.MicroKernelExceptionpublic String getHeadRevision() throws org.apache.jackrabbit.mk.api.MicroKernelException
getHeadRevision in interface org.apache.jackrabbit.mk.api.MicroKernelorg.apache.jackrabbit.mk.api.MicroKernelExceptionpublic String getJournal(String fromRevisionId, String toRevisionId, String path) throws org.apache.jackrabbit.mk.api.MicroKernelException
getJournal in interface org.apache.jackrabbit.mk.api.MicroKernelorg.apache.jackrabbit.mk.api.MicroKernelExceptionpublic long getLength(String blobId) throws org.apache.jackrabbit.mk.api.MicroKernelException
getLength in interface org.apache.jackrabbit.mk.api.MicroKernelorg.apache.jackrabbit.mk.api.MicroKernelExceptionpublic String getNodes(String path, String revisionId, int depth, long offset, int maxChildNodes, String filter) throws org.apache.jackrabbit.mk.api.MicroKernelException
getNodes in interface org.apache.jackrabbit.mk.api.MicroKernelorg.apache.jackrabbit.mk.api.MicroKernelExceptionpublic String getRevisionHistory(long since, int maxEntries, String path) throws org.apache.jackrabbit.mk.api.MicroKernelException
getRevisionHistory in interface org.apache.jackrabbit.mk.api.MicroKernelorg.apache.jackrabbit.mk.api.MicroKernelExceptionpublic String merge(String branchRevisionId, String message) throws org.apache.jackrabbit.mk.api.MicroKernelException
merge in interface org.apache.jackrabbit.mk.api.MicroKernelorg.apache.jackrabbit.mk.api.MicroKernelExceptionpublic boolean nodeExists(String path, String revisionId) throws org.apache.jackrabbit.mk.api.MicroKernelException
nodeExists in interface org.apache.jackrabbit.mk.api.MicroKernelorg.apache.jackrabbit.mk.api.MicroKernelExceptionpublic int read(String blobId, long pos, byte[] buff, int off, int length) throws org.apache.jackrabbit.mk.api.MicroKernelException
read in interface org.apache.jackrabbit.mk.api.MicroKernelorg.apache.jackrabbit.mk.api.MicroKernelExceptionpublic String waitForCommit(String oldHeadRevisionId, long timeout) throws org.apache.jackrabbit.mk.api.MicroKernelException, InterruptedException
waitForCommit in interface org.apache.jackrabbit.mk.api.MicroKernelorg.apache.jackrabbit.mk.api.MicroKernelExceptionInterruptedExceptionpublic String write(InputStream in) throws org.apache.jackrabbit.mk.api.MicroKernelException
write in interface org.apache.jackrabbit.mk.api.MicroKernelorg.apache.jackrabbit.mk.api.MicroKernelExceptionCopyright © 2012-2013 The Apache Software Foundation. All Rights Reserved.