public static enum HdfsConstants.StartupOption extends Enum<HdfsConstants.StartupOption>
限定符和类型 | 方法和说明 |
---|---|
MetaRecoveryContext |
createRecoveryContext() |
boolean |
getConfirmationNeeded() |
int |
getForce() |
boolean |
getInteractive() |
String |
getName() |
void |
setConfirmationNeeded(boolean confirmationNeeded) |
void |
setForce(int force) |
void |
setInteractive(boolean interactive) |
static HdfsConstants.StartupOption |
valueOf(String name)
返回带有指定名称的该类型的枚举常量。
|
static HdfsConstants.StartupOption[] |
values()
按照声明该枚举类型的常量的顺序, 返回
包含这些常量的数组。
|
public static final HdfsConstants.StartupOption FORMAT
public static final HdfsConstants.StartupOption REGULAR
public static final HdfsConstants.StartupOption UPGRADE
public static final HdfsConstants.StartupOption RECOVER
public static final HdfsConstants.StartupOption FORCE
public static final HdfsConstants.StartupOption ROLLBACK
public static final HdfsConstants.StartupOption FINALIZE
public static final HdfsConstants.StartupOption IMPORT
public static final HdfsConstants.StartupOption NONINTERACTIVE
public static HdfsConstants.StartupOption[] values()
for (HdfsConstants.StartupOption c : HdfsConstants.StartupOption.values()) System.out.println(c);
public static HdfsConstants.StartupOption valueOf(String name)
name
- 要返回的枚举常量的名称。public String getName()
public MetaRecoveryContext createRecoveryContext()
public void setForce(int force)
public int getForce()
public void setConfirmationNeeded(boolean confirmationNeeded)
public boolean getConfirmationNeeded()
public void setInteractive(boolean interactive)
public boolean getInteractive()
Copyright © 2009 The Apache Software Foundation