org.apache.hadoop.hdfs.server.common
Class UpgradeManager
java.lang.Object
org.apache.hadoop.hdfs.server.common.UpgradeManager
@InterfaceAudience.Private
public abstract class UpgradeManager
- extends Object
Generic upgrade manager.
broadcastCommand
is the command that should be
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
currentUpgrades
protected SortedSet<Upgradeable> currentUpgrades
upgradeState
protected boolean upgradeState
upgradeVersion
protected int upgradeVersion
broadcastCommand
protected UpgradeCommand broadcastCommand
UpgradeManager
public UpgradeManager()
getBroadcastCommand
public UpgradeCommand getBroadcastCommand()
getUpgradeState
public boolean getUpgradeState()
getUpgradeVersion
public int getUpgradeVersion()
setUpgradeState
public void setUpgradeState(boolean uState,
int uVersion)
getDistributedUpgrades
public SortedSet<Upgradeable> getDistributedUpgrades()
throws IOException
- Throws:
IOException
getUpgradeStatus
public short getUpgradeStatus()
initializeUpgrade
public boolean initializeUpgrade()
throws IOException
- Throws:
IOException
isUpgradeCompleted
public boolean isUpgradeCompleted()
getType
public abstract HdfsConstants.NodeType getType()
startUpgrade
public abstract boolean startUpgrade()
throws IOException
- Throws:
IOException
completeUpgrade
public abstract void completeUpgrade()
throws IOException
- Throws:
IOException
Copyright © 2009 The Apache Software Foundation