public enum PartitionStates extends Enum<PartitionStates>
Enum Constant and Description |
---|
ERROR |
OK |
PARTIAL |
READONLY |
SPLITTING |
SYNCING |
Modifier and Type | Method and Description |
---|---|
static PartitionStates |
fromString(String stateId) |
String |
getState() |
boolean |
isComplete() |
boolean |
isPartitionModificationAllowed() |
boolean |
isReadAllowed() |
boolean |
isWriteAllowed() |
static PartitionStates |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static PartitionStates[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final PartitionStates OK
public static final PartitionStates SPLITTING
public static final PartitionStates SYNCING
public static final PartitionStates READONLY
public static final PartitionStates PARTIAL
public static final PartitionStates ERROR
public static PartitionStates[] values()
for (PartitionStates c : PartitionStates.values()) System.out.println(c);
public static PartitionStates 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 boolean isComplete()
public String getState()
public boolean isWriteAllowed()
public boolean isReadAllowed()
public boolean isPartitionModificationAllowed()
public static PartitionStates fromString(String stateId)
Copyright © 2015. All rights reserved.