org.apache.hadoop.hbase.zookeeper
Enum ZKSplitLog.TaskState
java.lang.Object
java.lang.Enum<ZKSplitLog.TaskState>
org.apache.hadoop.hbase.zookeeper.ZKSplitLog.TaskState
- All Implemented Interfaces:
- Serializable, Comparable<ZKSplitLog.TaskState>
- Enclosing class:
- ZKSplitLog
public static enum ZKSplitLog.TaskState
- extends Enum<ZKSplitLog.TaskState>
TASK_UNASSIGNED
public static final ZKSplitLog.TaskState TASK_UNASSIGNED
TASK_OWNED
public static final ZKSplitLog.TaskState TASK_OWNED
TASK_RESIGNED
public static final ZKSplitLog.TaskState TASK_RESIGNED
TASK_DONE
public static final ZKSplitLog.TaskState TASK_DONE
TASK_ERR
public static final ZKSplitLog.TaskState TASK_ERR
values
public static ZKSplitLog.TaskState[] 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 (ZKSplitLog.TaskState c : ZKSplitLog.TaskState.values())
System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in
the order they are declared
valueOf
public static ZKSplitLog.TaskState 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
get
public byte[] get(String serverName)
getWriterName
public String getWriterName(byte[] data)
equals
public boolean equals(byte[] s)
- Parameters:
s
-
- Returns:
- True if
state
is a prefix of s. False otherwise.
equals
public boolean equals(byte[] s,
String serverName)
toString
public String toString()
- Overrides:
toString
in class Enum<ZKSplitLog.TaskState>
Copyright © 2013 The Apache Software Foundation. All Rights Reserved.