public static enum TierObjectMetadata.State extends Enum<TierObjectMetadata.State>
| Enum Constant and Description |
|---|
SEGMENT_DELETE_COMPLETE |
SEGMENT_DELETE_INITIATE |
SEGMENT_FENCED |
SEGMENT_UPLOAD_COMPLETE |
SEGMENT_UPLOAD_INITIATE |
| Modifier and Type | Method and Description |
|---|---|
boolean |
canTransitionTo(TierObjectMetadata.State newState)
Check if we can safely transition to the given state.
|
byte |
id() |
static TierObjectMetadata.State |
toState(byte id) |
static TierObjectMetadata.State |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static TierObjectMetadata.State[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final TierObjectMetadata.State SEGMENT_UPLOAD_INITIATE
public static final TierObjectMetadata.State SEGMENT_UPLOAD_COMPLETE
public static final TierObjectMetadata.State SEGMENT_DELETE_INITIATE
public static final TierObjectMetadata.State SEGMENT_DELETE_COMPLETE
public static final TierObjectMetadata.State SEGMENT_FENCED
public static TierObjectMetadata.State[] values()
for (TierObjectMetadata.State c : TierObjectMetadata.State.values()) System.out.println(c);
public static TierObjectMetadata.State 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 id()
public static TierObjectMetadata.State toState(byte id)
public boolean canTransitionTo(TierObjectMetadata.State newState)
newState - The state to transition toIllegalStateException - If attempt to transition to given state is illegal