public class SnapshotManifest extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
SnapshotManifest.Builder
Utility class for creating
SnapshotManifest instances. |
static class |
SnapshotManifest.LogFileInfo
Information associated with a single log file in the snapshot.
|
| Modifier and Type | Method and Description |
|---|---|
static SnapshotManifest |
deserialize(byte[] bytes)
Create a SnapshotManifest instance from bytes in serialized form.
|
boolean |
equals(Object object) |
String |
getChecksum() |
long |
getEndOfLog() |
SortedMap<String,SnapshotManifest.LogFileInfo> |
getErasedFiles() |
boolean |
getIsComplete() |
boolean |
getIsMaster() |
long |
getLastFileCopiedTimeMs() |
String |
getNodeName() |
int |
getSequence() |
String |
getSnapshot() |
SortedMap<String,SnapshotManifest.LogFileInfo> |
getSnapshotFiles() |
long |
getStartTimeMs() |
int |
getVersion() |
int |
hashCode() |
byte[] |
serialize()
Create a serialized form of this instance.
|
String |
toString() |
void |
validate()
Checks if the format of the instance is valid, but does no validation
if the version is 0.
|
public int getVersion()
public int getSequence()
public String getSnapshot()
public long getStartTimeMs()
public long getLastFileCopiedTimeMs()
public String getNodeName()
public String getChecksum()
public long getEndOfLog()
public boolean getIsMaster()
public boolean getIsComplete()
public SortedMap<String,SnapshotManifest.LogFileInfo> getSnapshotFiles()
public SortedMap<String,SnapshotManifest.LogFileInfo> getErasedFiles()
public byte[] serialize()
throws IOException
IOException - if a problem occurs during serializationpublic static SnapshotManifest deserialize(byte[] bytes) throws IOException
IOException - if a problem occurs during deserialization, in
particular if the data format is invalidpublic void validate()
IllegalArgumentException - if the format of the instance is
not validCopyright © 2024. All rights reserved.