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
IOException
public short getUpgradeStatus()
public boolean initializeUpgrade() throws IOException
IOException
public boolean isUpgradeCompleted()
public abstract HdfsConstants.NodeType getType()
public abstract boolean startUpgrade() throws IOException
IOException
public abstract void completeUpgrade() throws IOException
IOException
Copyright © 2009 The Apache Software Foundation