org.apache.hadoop.hdfs.protocol
Enum HdfsConstants.RollingUpgradeAction
java.lang.Object
java.lang.Enum<HdfsConstants.RollingUpgradeAction>
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>
QUERY
public static final HdfsConstants.RollingUpgradeAction QUERY
PREPARE
public static final HdfsConstants.RollingUpgradeAction PREPARE
FINALIZE
public static final HdfsConstants.RollingUpgradeAction FINALIZE
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.