|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface Upgradeable
Common interface for distributed upgrade objects.
Each upgrade object corresponds to a layout version,
which is the latest version that should be upgraded using this object.
That is all components whose layout version is greater or equal to the
one returned by getVersion()
must be upgraded with this object.
Method Summary | |
---|---|
org.apache.hadoop.dfs.UpgradeCommand |
completeUpgrade()
Complete upgrade. |
String |
getDescription()
Description of the upgrade object for displaying. |
FSConstants.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. |
UpgradeStatusReport |
getUpgradeStatusReport(boolean details)
Get status report for the upgrade. |
int |
getVersion()
Get the layout version of the upgrade object. |
org.apache.hadoop.dfs.UpgradeCommand |
startUpgrade()
Prepare for the upgrade. |
Methods inherited from interface java.lang.Comparable |
---|
compareTo |
Method Detail |
---|
int getVersion()
FSConstants.NodeType getType()
String getDescription()
short getUpgradeStatus()
org.apache.hadoop.dfs.UpgradeCommand startUpgrade() throws IOException
IOException
org.apache.hadoop.dfs.UpgradeCommand completeUpgrade() throws IOException
IOException
UpgradeStatusReport getUpgradeStatusReport(boolean details) throws IOException
details
- true if upgradeStatus details need to be included,
false otherwise
UpgradeStatusReport
IOException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |