public class DatanodeRegistration extends DatanodeID implements Writable
限定符和类型 | 字段和说明 |
---|---|
ExportedBlockKeys |
exportedKeys |
StorageInfo |
storageInfo |
EMPTY_ARRAY, infoPort, ipcPort, name, storageID
构造器和说明 |
---|
DatanodeRegistration()
Default constructor.
|
DatanodeRegistration(String nodeName)
Create DatanodeRegistration
|
限定符和类型 | 方法和说明 |
---|---|
String |
getRegistrationID() |
int |
getVersion() |
void |
readFields(DataInput in)
Deserialize the fields of this object from
in . |
void |
setInfoPort(int infoPort) |
void |
setIpcPort(int ipcPort) |
void |
setName(String name) |
void |
setStorageInfo(DataStorage storage) |
String |
toString() |
void |
write(DataOutput out)
Serialize the fields of this object to
out . |
compareTo, equals, getHost, getInfoPort, getIpcPort, getName, getPort, getStorageID, hashCode, setStorageID, updateRegInfo
public StorageInfo storageInfo
public ExportedBlockKeys exportedKeys
public DatanodeRegistration()
public DatanodeRegistration(String nodeName)
public void setInfoPort(int infoPort)
public void setIpcPort(int ipcPort)
public void setStorageInfo(DataStorage storage)
public void setName(String name)
public int getVersion()
public String getRegistrationID()
public String toString()
toString
在类中 DatanodeID
public void write(DataOutput out) throws IOException
out
.write
在接口中 Writable
write
在类中 DatanodeID
out
- DataOuput
to serialize this object into.IOException
public void readFields(DataInput in) throws IOException
in
.
For efficiency, implementations should attempt to re-use storage in the existing object where possible.
readFields
在接口中 Writable
readFields
在类中 DatanodeID
in
- DataInput
to deseriablize this object from.IOException
Copyright © 2009 The Apache Software Foundation