| 限定符和类型 | 字段和说明 |
|---|---|
protected boolean |
finalized |
protected short |
upgradeStatus |
protected int |
version |
| 构造器和说明 |
|---|
UpgradeStatusReport() |
UpgradeStatusReport(int version,
short status,
boolean isFinalized) |
| 限定符和类型 | 方法和说明 |
|---|---|
String |
getStatusText(boolean details)
Get upgradeStatus data as a text for reporting.
|
short |
getUpgradeStatus()
Get upgrade upgradeStatus as a percentage of the total upgrade done.
|
int |
getVersion()
Get the layout version of the currently running upgrade.
|
boolean |
isFinalized()
Is current upgrade finalized.
|
void |
readFields(DataInput in)
Deserialize the fields of this object from
in. |
String |
toString()
Print basic upgradeStatus details.
|
void |
write(DataOutput out)
Serialize the fields of this object to
out. |
protected int version
protected short upgradeStatus
protected boolean finalized
public UpgradeStatusReport()
public UpgradeStatusReport(int version,
short status,
boolean isFinalized)
public int getVersion()
public short getUpgradeStatus()
public boolean isFinalized()
public String getStatusText(boolean details)
details - true if upgradeStatus details need to be included,
false otherwisepublic void write(DataOutput out) throws IOException
Writableout.write 在接口中 Writableout - DataOuput to serialize this object into.IOExceptionpublic void readFields(DataInput in) throws IOException
Writablein.
For efficiency, implementations should attempt to re-use storage in the existing object where possible.
readFields 在接口中 Writablein - DataInput to deseriablize this object from.IOExceptionCopyright © 2009 The Apache Software Foundation