@InterfaceAudience.Private @InterfaceStability.Evolving public class NamenodeRegistration extends StorageInfo implements NodeRegistration
clusterID, cTime, layoutVersion, namespaceID
Constructor and Description |
---|
NamenodeRegistration(String address,
String httpAddress,
StorageInfo storageInfo,
HdfsServerConstants.NamenodeRole role) |
Modifier and Type | Method and Description |
---|---|
String |
getAddress()
Get address of the server node.
|
String |
getHttpAddress() |
String |
getRegistrationID()
Get registration ID of the server node.
|
HdfsServerConstants.NamenodeRole |
getRole()
Get name-node role.
|
int |
getVersion()
Get layout version of the server node.
|
boolean |
isRole(HdfsServerConstants.NamenodeRole that) |
String |
toString() |
getClusterID, getCTime, getLayoutVersion, getNamespaceID, setStorageInfo, toColonSeparatedString, versionSupportsFederation
public NamenodeRegistration(String address, String httpAddress, StorageInfo storageInfo, HdfsServerConstants.NamenodeRole role)
public String getAddress()
NodeRegistration
getAddress
in interface NodeRegistration
public String getHttpAddress()
public String getRegistrationID()
NodeRegistration
getRegistrationID
in interface NodeRegistration
public int getVersion()
NodeRegistration
getVersion
in interface NodeRegistration
public String toString()
toString
in interface NodeRegistration
toString
in class StorageInfo
public HdfsServerConstants.NamenodeRole getRole()
public boolean isRole(HdfsServerConstants.NamenodeRole that)
Copyright © 2013 Apache Software Foundation. All rights reserved.