java.io.Serializable
, java.lang.Comparable<SnapshotState>
public enum SnapshotState extends java.lang.Enum<SnapshotState>
Enum Constant | Description |
---|---|
FAILED |
Snapshot failed
|
IN_PROGRESS |
Snapshot process has started
|
INCOMPATIBLE |
Snapshot is incompatible with the current version of the cluster
|
PARTIAL |
Snapshot was partial successful
|
SUCCESS |
Snapshot process completed successfully
|
Modifier and Type | Method | Description |
---|---|---|
boolean |
completed() |
Returns true if snapshot completed (successfully or not)
|
static SnapshotState |
fromValue(byte value) |
Generate snapshot state from code
|
boolean |
restorable() |
Returns true if snapshot can be restored (at least partially)
|
byte |
value() |
Returns code that represents the snapshot state
|
static SnapshotState |
valueOf(java.lang.String name) |
Returns the enum constant of this type with the specified name.
|
static SnapshotState[] |
values() |
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final SnapshotState IN_PROGRESS
public static final SnapshotState SUCCESS
public static final SnapshotState FAILED
public static final SnapshotState PARTIAL
public static final SnapshotState INCOMPATIBLE
public static SnapshotState[] values()
for (SnapshotState c : SnapshotState.values()) System.out.println(c);
public static SnapshotState valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is nullpublic byte value()
public boolean completed()
public boolean restorable()
public static SnapshotState fromValue(byte value)
value
- the state code