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 Map<String,String> |
getInfo(String cp)
Return checkpoint metadata
|
abstract List<Checkpoints.CP> |
list() |
static Checkpoints |
onDocumentMK(DocumentNodeStore store) |
static Checkpoints |
onSegmentTar(File path,
Closer closer) |
abstract int |
remove(String cp)
Removes the given checkpoint.
|
abstract long |
removeAll()
Remove all checkpoints.
|
abstract long |
removeUnreferenced()
Remove all unreferenced checkpoints.
|
abstract int |
setInfoProperty(String cp,
String name,
String value)
Set the property in the checkpoint metadata.
|
public static Checkpoints onSegmentTar(File path, Closer closer) throws IOException
IOException
public static Checkpoints onDocumentMK(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.public abstract Map<String,String> getInfo(String cp)
cp
- a checkpoint string.public abstract int setInfoProperty(String cp, String name, String value)
cp
- a checkpoint string.name
- property namevalue
- new value of the property. the property will be removed if the value is null
1
if the checkpoint was successfully remove, 0
if
there is no such checkpoint or -1
if the operation did
not succeed.Copyright © 2012–2020 The Apache Software Foundation. All rights reserved.