public interface Upgradeable extends Comparable<Upgradeable>
getVersion()
must be upgraded with this object.限定符和类型 | 方法和说明 |
---|---|
UpgradeCommand |
completeUpgrade()
Complete upgrade.
|
String |
getDescription()
Description of the upgrade object for displaying.
|
HdfsConstants.NodeType |
getType()
Get the type of the software component, which this object is upgrading.
|
short |
getUpgradeStatus()
Upgrade status determines a percentage of the work done out of the total
amount required by the upgrade.
100% means that the upgrade is completed.
|
UpgradeStatusReport |
getUpgradeStatusReport(boolean details)
Get status report for the upgrade.
|
int |
getVersion()
Get the layout version of the upgrade object.
|
UpgradeCommand |
startUpgrade()
Prepare for the upgrade.
|
compareTo
int getVersion()
HdfsConstants.NodeType getType()
String getDescription()
short getUpgradeStatus()
UpgradeCommand startUpgrade() throws IOException
IOException
UpgradeCommand completeUpgrade() throws IOException
IOException
UpgradeStatusReport getUpgradeStatusReport(boolean details) throws IOException
details
- true if upgradeStatus details need to be included,
false otherwiseUpgradeStatusReport
IOException
Copyright © 2009 The Apache Software Foundation