@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, updateRegInfo
public 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()
NodeRegistration
getVersion
in interface NodeRegistration
public String getRegistrationID()
NodeRegistration
getRegistrationID
in interface NodeRegistration
public String getAddress()
NodeRegistration
getAddress
in interface NodeRegistration
public String toString()
toString
in interface NodeRegistration
toString
in class DatanodeID
public boolean equals(Object to)
equals
in class DatanodeID
public int hashCode()
hashCode
in class DatanodeID
Copyright © 2013 Apache Software Foundation. All rights reserved.