| Constructor and Description |
|---|
ProxyNodeStore() |
| Modifier and Type | Method and Description |
|---|---|
String |
checkpoint(long lifetime)
Creates a new checkpoint of the latest root of the tree.
|
@NotNull String |
checkpoint(long lifetime,
@NotNull Map<String,String> properties)
Creates a new checkpoint of the latest root of the tree.
|
@NotNull Map<String,String> |
checkpointInfo(@NotNull String checkpoint)
Retrieve the properties associated with a checkpoint.
|
@NotNull Iterable<String> |
checkpoints()
Returns all valid checkpoints.
|
org.apache.jackrabbit.oak.api.Blob |
createBlob(InputStream inputStream)
Create a
Blob from the given input stream. |
org.apache.jackrabbit.oak.api.Blob |
getBlob(@NotNull String reference)
Get a blob by its reference.
|
protected abstract NodeStore |
getNodeStore() |
NodeState |
getRoot()
Returns the latest state of the tree.
|
NodeState |
merge(NodeBuilder builder,
CommitHook commitHook,
CommitInfo info)
|
NodeState |
rebase(NodeBuilder builder)
|
boolean |
release(String checkpoint)
Releases the provided checkpoint.
|
NodeState |
reset(NodeBuilder builder)
Reset the passed
builder by throwing away all its changes and
setting its base state to the current root state. |
NodeState |
retrieve(String checkpoint)
Retrieves the root node from a previously created repository checkpoint.
|
protected abstract NodeStore getNodeStore()
public NodeState getRoot()
NodeStorepublic NodeState merge(NodeBuilder builder, CommitHook commitHook, CommitInfo info) throws org.apache.jackrabbit.oak.api.CommitFailedException
NodeStoremerge in interface NodeStorebuilder - the builder whose changes to applycommitHook - the commit hook to apply while merging changesinfo - commit info associated with this merge operationorg.apache.jackrabbit.oak.api.CommitFailedException - if the merge failedpublic NodeState rebase(NodeBuilder builder)
NodeStorepublic NodeState reset(NodeBuilder builder)
NodeStorebuilder by throwing away all its changes and
setting its base state to the current root state.public org.apache.jackrabbit.oak.api.Blob createBlob(InputStream inputStream) throws IOException
NodeStoreBlob from the given input stream. The input stream
is closed after this method returns.createBlob in interface NodeStoreinputStream - The input stream for the BlobBlob representing inputStreamIOException - If an error occurs while reading from the streampublic org.apache.jackrabbit.oak.api.Blob getBlob(@NotNull @NotNull String reference)
NodeStore@NotNull public @NotNull String checkpoint(long lifetime, @NotNull @NotNull Map<String,String> properties)
NodeStore
The properties passed to this methods are associated with the
checkpoint and can be retrieved through the NodeStore.checkpointInfo(String)
method. Its semantics is entirely application specific.
checkpoint in interface NodeStorelifetime - time (in milliseconds, > 0) that the checkpoint
should remain availableproperties - properties to associate with the checkpointpublic String checkpoint(long lifetime)
NodeStore
This method is a shortcut for NodeStore.checkpoint(long, Map) passing
an empty map for its 2nd argument.
checkpoint in interface NodeStorelifetime - time (in milliseconds, > 0) that the checkpoint
should remain available@NotNull public @NotNull Map<String,String> checkpointInfo(@NotNull @NotNull String checkpoint)
NodeStorecheckpointInfo in interface NodeStorecheckpoint - string reference of a checkpointcheckpoint or an empty map when there is no such
checkpoint.@NotNull public @NotNull Iterable<String> checkpoints()
NodeStoreIterable provides a
snapshot of valid checkpoints at the time this method is called. That
is, the Iterable will not reflect checkpoints created after this
method was called.
See NodeStore.checkpoint(long, Map) for a definition of a valid
checkpoint.
checkpoints in interface NodeStorepublic NodeState retrieve(String checkpoint)
NodeStoreCopyright © 2012–2020 The Apache Software Foundation. All rights reserved.