|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.hadoop.dfs.DatanodeID
public class DatanodeID
DatanodeID is composed of the data node name (hostname:portNumber) and the data storage ID, which it currently represents.
Field Summary | |
---|---|
protected int |
infoPort
|
protected String |
name
|
protected String |
storageID
|
Constructor Summary | |
---|---|
DatanodeID()
DatanodeID default constructor |
|
DatanodeID(DatanodeID from)
DatanodeID copy constructor |
|
DatanodeID(String nodeName,
String storageID,
int infoPort)
Create DatanodeID |
Method Summary | |
---|---|
int |
compareTo(Object o)
Comparable. |
boolean |
equals(Object to)
|
String |
getHost()
|
int |
getInfoPort()
|
String |
getName()
|
int |
getPort()
|
String |
getStorageID()
|
int |
hashCode()
|
void |
readFields(DataInput in)
Reads the fields of this object from in . |
String |
toString()
|
void |
write(DataOutput out)
Writes the fields of this object to out . |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
protected String name
protected String storageID
protected int infoPort
Constructor Detail |
---|
public DatanodeID()
public DatanodeID(DatanodeID from)
from
- public DatanodeID(String nodeName, String storageID, int infoPort)
nodeName
- (hostname:portNumber)storageID
- data storage IDMethod Detail |
---|
public String getName()
public String getStorageID()
public int getInfoPort()
public String getHost()
public int getPort()
public boolean equals(Object to)
equals
in class Object
public int hashCode()
hashCode
in class Object
public String toString()
toString
in class Object
public int compareTo(Object o)
compareTo
in interface Comparable
o
-
public void write(DataOutput out) throws IOException
Writable
out
.
write
in interface Writable
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
IOException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |