public enum SnapshotState extends Enum<SnapshotState>
Enum Constant and Description |
---|
FAILED
Snapshot failed
|
IN_PROGRESS
Snapshot process has started
|
PARTIAL
Snapshot was partial successful
|
SUCCESS
Snapshot process completed successfully
|
Modifier and Type | Method and 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(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 SnapshotState[] values()
for (SnapshotState c : SnapshotState.values()) System.out.println(c);
public static SnapshotState valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic byte value()
public boolean completed()
public boolean restorable()
public static SnapshotState fromValue(byte value)
value
- the state codeCopyright © 2009–2017. All rights reserved.