java.io.Serializable
, java.lang.Comparable<SnapshotIndexShardStage>
public enum SnapshotIndexShardStage extends java.lang.Enum<SnapshotIndexShardStage>
Enum Constant | Description |
---|---|
DONE |
Snapshot completed successfully
|
FAILURE |
Snapshot failed
|
FINALIZE |
Snapshot metadata is being written
|
INIT |
Snapshot hasn't started yet
|
STARTED |
Index files are being copied
|
Modifier and Type | Method | Description |
---|---|---|
boolean |
completed() |
Returns true if snapshot completed (successfully or not)
|
static SnapshotIndexShardStage |
fromValue(byte value) |
Generate snapshot state from code
|
byte |
value() |
Returns code that represents the snapshot state
|
static SnapshotIndexShardStage |
valueOf(java.lang.String name) |
Returns the enum constant of this type with the specified name.
|
static SnapshotIndexShardStage[] |
values() |
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final SnapshotIndexShardStage INIT
public static final SnapshotIndexShardStage STARTED
public static final SnapshotIndexShardStage FINALIZE
public static final SnapshotIndexShardStage DONE
public static final SnapshotIndexShardStage FAILURE
public static SnapshotIndexShardStage[] values()
for (SnapshotIndexShardStage c : SnapshotIndexShardStage.values()) System.out.println(c);
public static SnapshotIndexShardStage 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 static SnapshotIndexShardStage fromValue(byte value)
value
- the state code