org.apache.hadoop.hbase.zookeeper
Enum ZKTable.TableState
java.lang.Object
java.lang.Enum<ZKTable.TableState>
org.apache.hadoop.hbase.zookeeper.ZKTable.TableState
- All Implemented Interfaces:
- Serializable, Comparable<ZKTable.TableState>
- Enclosing class:
- ZKTable
public static enum ZKTable.TableState
- extends Enum<ZKTable.TableState>
States a Table can be in.
ENABLED
is not used currently; its the absence of state
in zookeeper that indicates an enabled table currently.
ENABLED
public static final ZKTable.TableState ENABLED
DISABLED
public static final ZKTable.TableState DISABLED
DISABLING
public static final ZKTable.TableState DISABLING
ENABLING
public static final ZKTable.TableState ENABLING
values
public static ZKTable.TableState[] values()
- Returns an array containing the constants of this enum type, in
the order they are declared. This method may be used to iterate
over the constants as follows:
for (ZKTable.TableState c : ZKTable.TableState.values())
System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in
the order they are declared
valueOf
public static ZKTable.TableState valueOf(String name)
- Returns the enum constant of this type with the specified name.
The string must match exactly an identifier used to declare an
enum constant in this type. (Extraneous whitespace characters are
not permitted.)
- Parameters:
name
- the name of the enum constant to be returned.
- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum type has no constant
with the specified name
NullPointerException
- if the argument is null
Copyright © 2011 The Apache Software Foundation. All Rights Reserved.