public static enum ZKSplitLog.TaskState extends Enum<ZKSplitLog.TaskState>
Enum Constant and Description |
---|
TASK_DONE |
TASK_ERR |
TASK_OWNED |
TASK_RESIGNED |
TASK_UNASSIGNED |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(byte[] s) |
boolean |
equals(byte[] s,
String serverName) |
byte[] |
get(String serverName) |
String |
getWriterName(byte[] data) |
String |
toString() |
static ZKSplitLog.TaskState |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static ZKSplitLog.TaskState[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ZKSplitLog.TaskState TASK_UNASSIGNED
public static final ZKSplitLog.TaskState TASK_OWNED
public static final ZKSplitLog.TaskState TASK_RESIGNED
public static final ZKSplitLog.TaskState TASK_DONE
public static final ZKSplitLog.TaskState TASK_ERR
public static ZKSplitLog.TaskState[] values()
for (ZKSplitLog.TaskState c : ZKSplitLog.TaskState.values()) System.out.println(c);
public static ZKSplitLog.TaskState 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[] get(String serverName)
public String getWriterName(byte[] data)
public boolean equals(byte[] s)
s
- state
is a prefix of s. False otherwise.public boolean equals(byte[] s, String serverName)
public String toString()
toString
in class Enum<ZKSplitLog.TaskState>
Copyright © 2014 The Apache Software Foundation. All Rights Reserved.