org.apache.hadoop.hdfs.server.common
Enum HdfsServerConstants.StartupOption

java.lang.Object
  extended by java.lang.Enum<HdfsServerConstants.StartupOption>
      extended by 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


Enum Constant Summary
BACKUP
           
CHECKPOINT
           
CLUSTERID
           
FINALIZE
           
FORMAT
           
GENCLUSTERID
           
IMPORT
           
REGULAR
           
ROLLBACK
           
UPGRADE
           
 
Method Summary
 String getClusterId()
           
 String getName()
           
 void setClusterId(String cid)
           
 HdfsServerConstants.NamenodeRole toNodeRole()
           
static HdfsServerConstants.StartupOption valueOf(String name)
          Returns the enum constant of this type with the specified name.
static HdfsServerConstants.StartupOption[] 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

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

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