org.apache.hadoop.hdfs.protocol
Enum HdfsConstants.RollingUpgradeAction

java.lang.Object
  extended by java.lang.Enum<HdfsConstants.RollingUpgradeAction>
      extended by org.apache.hadoop.hdfs.protocol.HdfsConstants.RollingUpgradeAction
All Implemented Interfaces:
Serializable, Comparable<HdfsConstants.RollingUpgradeAction>
Enclosing class:
org.apache.hadoop.hdfs.protocol.HdfsConstants

public static enum HdfsConstants.RollingUpgradeAction
extends Enum<HdfsConstants.RollingUpgradeAction>


Enum Constant Summary
FINALIZE
           
PREPARE
           
QUERY
           
 
Method Summary
static HdfsConstants.RollingUpgradeAction fromString(String s)
          Covert the given String to a RollingUpgradeAction.
static HdfsConstants.RollingUpgradeAction valueOf(String name)
          Returns the enum constant of this type with the specified name.
static HdfsConstants.RollingUpgradeAction[] 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, toString, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

QUERY

public static final HdfsConstants.RollingUpgradeAction QUERY

PREPARE

public static final HdfsConstants.RollingUpgradeAction PREPARE

FINALIZE

public static final HdfsConstants.RollingUpgradeAction FINALIZE
Method Detail

values

public static HdfsConstants.RollingUpgradeAction[] 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 (HdfsConstants.RollingUpgradeAction c : HdfsConstants.RollingUpgradeAction.values())
    System.out.println(c);

Returns:
an array containing the constants of this enum type, in the order they are declared

valueOf

public static HdfsConstants.RollingUpgradeAction 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

fromString

public static HdfsConstants.RollingUpgradeAction fromString(String s)
Covert the given String to a RollingUpgradeAction.



Copyright © 2014 Apache Software Foundation. All Rights Reserved.