org.apache.hadoop.hbase.zookeeper
Enum ZKSplitLog.TaskState

java.lang.Object
  extended by java.lang.Enum<ZKSplitLog.TaskState>
      extended by 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>


Enum Constant Summary
TASK_DONE
           
TASK_ERR
           
TASK_OWNED
           
TASK_RESIGNED
           
TASK_UNASSIGNED
           
 
Method Summary
 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.
 
Methods inherited from class java.lang.Enum
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

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
Method Detail

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 © 2015 The Apache Software Foundation. All Rights Reserved.