org.apache.hadoop.hdfs.server.common
Class UpgradeManager

java.lang.Object
  extended by 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


Field Summary
protected  UpgradeCommand broadcastCommand
           
protected  SortedSet<Upgradeable> currentUpgrades
           
protected  boolean upgradeState
           
protected  int upgradeVersion
           
 
Constructor Summary
UpgradeManager()
           
 
Method Summary
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()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

currentUpgrades

protected SortedSet<Upgradeable> currentUpgrades

upgradeState

protected boolean upgradeState

upgradeVersion

protected int upgradeVersion

broadcastCommand

protected UpgradeCommand broadcastCommand
Constructor Detail

UpgradeManager

public UpgradeManager()
Method Detail

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