public abstract class UpgradeManager extends Object
broadcastCommand is the command that should be| 限定符和类型 | 字段和说明 |
|---|---|
protected UpgradeCommand |
broadcastCommand |
protected SortedSet<Upgradeable> |
currentUpgrades |
protected boolean |
upgradeState |
protected int |
upgradeVersion |
| 构造器和说明 |
|---|
UpgradeManager() |
| 限定符和类型 | 方法和说明 |
|---|---|
abstract void |
completeUpgrade() |
UpgradeCommand |
getBroadcastCommand() |
SortedSet<Upgradeable> |
getDistributedUpgrades() |
abstract HdfsConstants.NodeType |
getType() |
boolean |
getUpgradeState() |
short |
getUpgradeStatus() |
int |
getUpgradeVersion() |
boolean |
initializeUpgrade() |
boolean |
isUpgradeCompleted() |
void |
setUpgradeState(boolean uState,
int uVersion) |
abstract boolean |
startUpgrade() |
protected SortedSet<Upgradeable> currentUpgrades
protected boolean upgradeState
protected int upgradeVersion
protected UpgradeCommand broadcastCommand
public UpgradeCommand getBroadcastCommand()
public boolean getUpgradeState()
public int getUpgradeVersion()
public void setUpgradeState(boolean uState,
int uVersion)
public SortedSet<Upgradeable> getDistributedUpgrades() throws IOException
IOExceptionpublic short getUpgradeStatus()
public boolean initializeUpgrade()
throws IOException
IOExceptionpublic boolean isUpgradeCompleted()
public abstract HdfsConstants.NodeType getType()
public abstract boolean startUpgrade()
throws IOException
IOExceptionpublic abstract void completeUpgrade()
throws IOException
IOExceptionCopyright © 2009 The Apache Software Foundation