@InterfaceAudience.Private @InterfaceStability.Evolving public class DatanodeRegistration extends DatanodeID implements NodeRegistration
EMPTY_ARRAY| Constructor and Description |
|---|
DatanodeRegistration(DatanodeID dn,
StorageInfo info,
ExportedBlockKeys keys,
String softwareVersion) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object to) |
String |
getAddress()
Get address of the server node.
|
ExportedBlockKeys |
getExportedKeys() |
String |
getRegistrationID()
Get registration ID of the server node.
|
String |
getSoftwareVersion() |
StorageInfo |
getStorageInfo() |
int |
getVersion()
Get layout version of the server node.
|
int |
hashCode() |
void |
setExportedKeys(ExportedBlockKeys keys) |
String |
toString() |
compareTo, getHostName, getInfoAddr, getInfoPort, getInfoSecureAddr, getInfoSecurePort, getIpAddr, getIpcAddr, getIpcPort, getPeerHostName, getStorageID, getXferAddr, getXferAddr, getXferAddrWithHostname, getXferPort, setIpAddr, setPeerHostName, setStorageID, updateRegInfopublic DatanodeRegistration(DatanodeID dn, StorageInfo info, ExportedBlockKeys keys, String softwareVersion)
public StorageInfo getStorageInfo()
public void setExportedKeys(ExportedBlockKeys keys)
public ExportedBlockKeys getExportedKeys()
public String getSoftwareVersion()
public int getVersion()
NodeRegistrationgetVersion in interface NodeRegistrationpublic String getRegistrationID()
NodeRegistrationgetRegistrationID in interface NodeRegistrationpublic String getAddress()
NodeRegistrationgetAddress in interface NodeRegistrationpublic String toString()
toString in interface NodeRegistrationtoString in class DatanodeIDpublic boolean equals(Object to)
equals in class DatanodeIDpublic int hashCode()
hashCode in class DatanodeIDCopyright © 2013 Apache Software Foundation. All rights reserved.