public abstract class Snapshot extends Status
| Modifier and Type | Field and Description |
|---|---|
static String |
JRAFT_SNAPSHOT_META_FILE
Snapshot metadata file name.
|
static String |
JRAFT_SNAPSHOT_PREFIX
Snapshot file prefix.
|
static String |
REMOTE_SNAPSHOT_URI_SCHEME
Snapshot uri scheme for remote peer
|
| Constructor and Description |
|---|
Snapshot() |
| Modifier and Type | Method and Description |
|---|---|
abstract com.google.protobuf.Message |
getFileMeta(String fileName)
Get file meta by fileName.
|
abstract String |
getPath()
Get the path of the Snapshot
|
abstract Set<String> |
listFiles()
List all the existing files in the Snapshot currently
|
copy, equals, getCode, getErrorMsg, getRaftError, hashCode, isOk, OK, reset, setCode, setError, setError, setErrorMsg, toStringpublic static final String JRAFT_SNAPSHOT_META_FILE
public static final String JRAFT_SNAPSHOT_PREFIX
public static final String REMOTE_SNAPSHOT_URI_SCHEME
Copyright © 2024. All rights reserved.