public static enum HdfsServerConstants.StartupOption extends Enum<HdfsServerConstants.StartupOption>
Enum Constant and Description |
---|
BACKUP |
CHECKPOINT |
CLUSTERID |
FINALIZE |
FORMAT |
GENCLUSTERID |
IMPORT |
REGULAR |
ROLLBACK |
UPGRADE |
Modifier and Type | Method and Description |
---|---|
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.
|
public static final HdfsServerConstants.StartupOption FORMAT
public static final HdfsServerConstants.StartupOption CLUSTERID
public static final HdfsServerConstants.StartupOption GENCLUSTERID
public static final HdfsServerConstants.StartupOption REGULAR
public static final HdfsServerConstants.StartupOption BACKUP
public static final HdfsServerConstants.StartupOption CHECKPOINT
public static final HdfsServerConstants.StartupOption UPGRADE
public static final HdfsServerConstants.StartupOption ROLLBACK
public static final HdfsServerConstants.StartupOption FINALIZE
public static final HdfsServerConstants.StartupOption IMPORT
public static HdfsServerConstants.StartupOption[] values()
for (HdfsServerConstants.StartupOption c : HdfsServerConstants.StartupOption.values()) System.out.println(c);
public static HdfsServerConstants.StartupOption valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant
with the specified nameNullPointerException
- if the argument is nullpublic HdfsServerConstants.NamenodeRole toNodeRole()
public void setClusterId(String cid)
public String getClusterId()
Copyright © 2014 Apache Software Foundation. All Rights Reserved.