public abstract class Checkpoints extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
Checkpoints.CP |
| Constructor and Description |
|---|
Checkpoints() |
| Modifier and Type | Method and Description |
|---|---|
abstract List<Checkpoints.CP> |
list() |
static Checkpoints |
onDocumentMK(org.apache.jackrabbit.oak.plugins.document.DocumentNodeStore store) |
static Checkpoints |
onSegment(File path,
com.google.common.io.Closer closer) |
static Checkpoints |
onSegmentTar(File path,
com.google.common.io.Closer closer) |
abstract int |
remove(String cp)
Removes the given checkpoint.
|
abstract long |
removeAll()
Remove all checkpoints.
|
abstract long |
removeUnreferenced()
Remove all unreferenced checkpoints.
|
public static Checkpoints onSegment(File path, com.google.common.io.Closer closer) throws IOException, org.apache.jackrabbit.oak.plugins.segment.file.InvalidFileStoreVersionException
public static Checkpoints onSegmentTar(File path, com.google.common.io.Closer closer) throws IOException
IOExceptionpublic static Checkpoints onDocumentMK(org.apache.jackrabbit.oak.plugins.document.DocumentNodeStore store)
public abstract List<Checkpoints.CP> list()
public abstract long removeAll()
-1 if the operation
did not succeed.public abstract long removeUnreferenced()
-1 if the operation
did not succeed.public abstract int remove(String cp)
cp - a checkpoint string.1 if the checkpoint was successfully remove, 0 if
there is no such checkpoint or -1 if the operation did
not succeed.Copyright © 2012-2017 The Apache Software Foundation. All Rights Reserved.