org.apache.accumulo.core.master.thrift
public enum MasterState extends Enum<MasterState> implements org.apache.thrift.TEnum
Enum Constant and Description |
---|
HAVE_LOCK |
INITIAL |
NORMAL |
SAFE_MODE |
STOP |
UNLOAD_METADATA_TABLETS |
UNLOAD_ROOT_TABLET |
Modifier and Type | Method and Description |
---|---|
static MasterState |
findByValue(int value)
Find a the enum type by its integer value, as defined in the Thrift IDL.
|
int |
getValue()
Get the integer value of this enum value, as defined in the Thrift IDL.
|
static MasterState |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static MasterState[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final MasterState INITIAL
public static final MasterState HAVE_LOCK
public static final MasterState SAFE_MODE
public static final MasterState NORMAL
public static final MasterState UNLOAD_METADATA_TABLETS
public static final MasterState UNLOAD_ROOT_TABLET
public static final MasterState STOP
public static MasterState[] values()
for (MasterState c : MasterState.values()) System.out.println(c);
public static MasterState 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 int getValue()
getValue
in interface org.apache.thrift.TEnum
public static MasterState findByValue(int value)
Copyright © 2015 Apache Accumulo Project. All Rights Reserved.