|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.hadoop.dfs.DatanodeID
org.apache.hadoop.dfs.DatanodeInfo
public class DatanodeInfo
DatanodeInfo represents the status of a DataNode.
| Field Summary | |
|---|---|
protected long |
capacity
|
protected long |
lastUpdate
|
protected long |
remaining
|
protected int |
xceiverCount
|
| Fields inherited from class org.apache.hadoop.dfs.DatanodeID |
|---|
infoPort, name, storageID |
| Method Summary | |
|---|---|
long |
getCapacity()
The raw capacity. |
String |
getDatanodeReport()
A formatted string for reporting the status of the DataNode. |
long |
getLastUpdate()
The time when this information was accurate. |
long |
getRemaining()
The raw free space. |
int |
getXceiverCount()
number of active connections |
long |
lastUpdate()
Deprecated. Use getLastUpdate() instead. |
void |
readFields(DataInput in)
Reads the fields of this object from in. |
void |
write(DataOutput out)
Writes the fields of this object to out. |
| Methods inherited from class org.apache.hadoop.dfs.DatanodeID |
|---|
compareTo, equals, getHost, getInfoPort, getName, getStorageID, hashCode, toString |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
protected long capacity
protected long remaining
protected long lastUpdate
protected int xceiverCount
| Method Detail |
|---|
public long getCapacity()
public long getRemaining()
public long getLastUpdate()
public int getXceiverCount()
public long lastUpdate()
getLastUpdate() instead.
public String getDatanodeReport()
public void write(DataOutput out)
throws IOException
Writableout.
write in interface Writablewrite in class DatanodeIDIOException
public void readFields(DataInput in)
throws IOException
Writablein. For efficiency,
implementations should attempt to re-use storage in the existing object
where possible.
readFields in interface WritablereadFields in class DatanodeIDIOException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||