public abstract class UpgradeObjectDatanode extends UpgradeObject implements Runnable
status| 构造器和说明 |
|---|
UpgradeObjectDatanode() |
| 限定符和类型 | 方法和说明 |
|---|---|
UpgradeCommand |
completeUpgrade()
Complete upgrade and return a status complete command for broadcasting.
|
abstract void |
doUpgrade()
Specifies how the upgrade is performed.
|
protected DataNode |
getDatanode() |
HdfsConstants.NodeType |
getType()
Get the type of the software component, which this object is upgrading.
|
void |
run() |
compareTo, equals, getDescription, getUpgradeStatus, getUpgradeStatusReport, hashCodegetVersion, startUpgradepublic HdfsConstants.NodeType getType()
UpgradeablegetType 在接口中 Upgradeableprotected DataNode getDatanode()
public abstract void doUpgrade()
throws IOException
IOExceptionpublic UpgradeCommand completeUpgrade() throws IOException
completeUpgrade 在接口中 UpgradeableIOExceptionCopyright © 2009 The Apache Software Foundation