public class MongoMK extends Object implements org.apache.jackrabbit.mk.api.MicroKernel
| Modifier and Type | Class and Description |
|---|---|
static class |
MongoMK.Builder
A builder for a MongoMK instance.
|
| Modifier and Type | Field and Description |
|---|---|
protected int |
asyncDelay
The delay for asynchronous operations (delayed commit propagation and
cache update).
|
| Modifier and Type | Method and Description |
|---|---|
void |
applyChanges(Revision rev,
String path,
boolean isNew,
boolean isDelete,
boolean isWritten,
ArrayList<String> added,
ArrayList<String> removed)
Apply the changes of a node to the cache.
|
String |
branch(String trunkRevisionId) |
String |
commit(String rootPath,
String json,
String baseRevId,
String message) |
String |
diff(String fromRevisionId,
String toRevisionId,
String path,
int depth) |
void |
dispose() |
int |
getAsyncDelay() |
long |
getChildNodeCount(String path,
String revisionId) |
org.apache.jackrabbit.mongomk.Node.Children |
getChildren(String path,
Revision rev,
int limit) |
ClusterNodeInfo |
getClusterInfo() |
DocumentStore |
getDocumentStore() |
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) |
int |
getPendingWriteCount() |
String |
getRevisionHistory(long since,
int maxEntries,
String path) |
boolean |
isCached(String path) |
String |
merge(String branchRevisionId,
String message) |
boolean |
nodeExists(String path,
String revisionId) |
static void |
parseAddNode(Commit commit,
org.apache.jackrabbit.mk.json.JsopReader t,
String path) |
int |
read(String blobId,
long pos,
byte[] buff,
int off,
int length) |
String |
rebase(String branchRevisionId,
String newBaseRevisionId) |
void |
setAsyncDelay(int delay) |
void |
stopBackground() |
String |
waitForCommit(String oldHeadRevisionId,
long timeout) |
String |
write(InputStream in) |
protected int asyncDelay
public void dispose()
public org.apache.jackrabbit.mongomk.Node.Children getChildren(String path, Revision rev, int limit)
public String getHeadRevision() throws org.apache.jackrabbit.mk.api.MicroKernelException
getHeadRevision 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 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 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 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 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 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 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 commit(String rootPath, String json, String baseRevId, String message) throws org.apache.jackrabbit.mk.api.MicroKernelException
commit in interface org.apache.jackrabbit.mk.api.MicroKernelorg.apache.jackrabbit.mk.api.MicroKernelExceptionpublic static void parseAddNode(Commit commit, org.apache.jackrabbit.mk.json.JsopReader t, String path)
public String branch(@Nullable String trunkRevisionId) throws org.apache.jackrabbit.mk.api.MicroKernelException
branch 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.MicroKernelException@Nonnull public String rebase(String branchRevisionId, String newBaseRevisionId) throws org.apache.jackrabbit.mk.api.MicroKernelException
rebase 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 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 write(InputStream in) throws org.apache.jackrabbit.mk.api.MicroKernelException
write in interface org.apache.jackrabbit.mk.api.MicroKernelorg.apache.jackrabbit.mk.api.MicroKernelExceptionpublic DocumentStore getDocumentStore()
public void setAsyncDelay(int delay)
public int getAsyncDelay()
public void applyChanges(Revision rev, String path, boolean isNew, boolean isDelete, boolean isWritten, ArrayList<String> added, ArrayList<String> removed)
rev - the revisionpath - the pathisNew - whether this is a new nodeisDelete - whether the node is deletedisWritten - whether the MongoDB documented was added / updatedadded - the list of added child nodesremoved - the list of removed child nodespublic ClusterNodeInfo getClusterInfo()
public int getPendingWriteCount()
public boolean isCached(String path)
public void stopBackground()
Copyright © 2012-2013 The Apache Software Foundation. All Rights Reserved.