org.apache.hadoop.hdfs.server.common
Enum HdfsServerConstants.StartupOption
java.lang.Object
java.lang.Enum<HdfsServerConstants.StartupOption>
org.apache.hadoop.hdfs.server.common.HdfsServerConstants.StartupOption
- All Implemented Interfaces:
- Serializable, Comparable<HdfsServerConstants.StartupOption>
- Enclosing class:
- org.apache.hadoop.hdfs.server.common.HdfsServerConstants
public static enum HdfsServerConstants.StartupOption
- extends Enum<HdfsServerConstants.StartupOption>
Startup options
FORMAT
public static final HdfsServerConstants.StartupOption FORMAT
CLUSTERID
public static final HdfsServerConstants.StartupOption CLUSTERID
GENCLUSTERID
public static final HdfsServerConstants.StartupOption GENCLUSTERID
REGULAR
public static final HdfsServerConstants.StartupOption REGULAR
BACKUP
public static final HdfsServerConstants.StartupOption BACKUP
CHECKPOINT
public static final HdfsServerConstants.StartupOption CHECKPOINT
UPGRADE
public static final HdfsServerConstants.StartupOption UPGRADE
ROLLBACK
public static final HdfsServerConstants.StartupOption ROLLBACK
FINALIZE
public static final HdfsServerConstants.StartupOption FINALIZE
IMPORT
public static final HdfsServerConstants.StartupOption IMPORT
values
public static HdfsServerConstants.StartupOption[] 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 (HdfsServerConstants.StartupOption c : HdfsServerConstants.StartupOption.values())
System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in
the order they are declared
valueOf
public static HdfsServerConstants.StartupOption 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
getName
public String getName()
toNodeRole
public HdfsServerConstants.NamenodeRole toNodeRole()
setClusterId
public void setClusterId(String cid)
getClusterId
public String getClusterId()
Copyright © 2013 Apache Software Foundation. All Rights Reserved.