|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.hadoop.dfs.UpgradeStatusReport
public class UpgradeStatusReport
Base upgrade upgradeStatus class. Overload this class if specific status fields need to be reported. Describes status of current upgrade.
Field Summary | |
---|---|
protected boolean |
finalized
|
protected short |
upgradeStatus
|
protected int |
version
|
Constructor Summary | |
---|---|
UpgradeStatusReport()
|
|
UpgradeStatusReport(int version,
short status,
boolean isFinalized)
|
Method Summary | |
---|---|
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 . |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
protected int version
protected short upgradeStatus
protected boolean finalized
Constructor Detail |
---|
public UpgradeStatusReport()
public UpgradeStatusReport(int version, short status, boolean isFinalized)
Method Detail |
---|
public int getVersion()
public short getUpgradeStatus()
Upgradeable.getUpgradeStatus()
public boolean isFinalized()
public String getStatusText(boolean details)
details
- true if upgradeStatus details need to be included,
false otherwise
public String toString()
toString
in class Object
public void write(DataOutput out) throws IOException
Writable
out
.
write
in interface Writable
out
- DataOuput
to serialize this object into.
IOException
public void readFields(DataInput in) throws IOException
Writable
in
.
For efficiency, implementations should attempt to re-use storage in the existing object where possible.
readFields
in interface Writable
in
- DataInput
to deseriablize this object from.
IOException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |