@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, versionSupportsFederationpublic NamenodeRegistration(String address, String httpAddress, StorageInfo storageInfo, HdfsServerConstants.NamenodeRole role)
public String getAddress()
NodeRegistrationgetAddress in interface NodeRegistrationpublic String getHttpAddress()
public String getRegistrationID()
NodeRegistrationgetRegistrationID in interface NodeRegistrationpublic int getVersion()
NodeRegistrationgetVersion in interface NodeRegistrationpublic String toString()
toString in interface NodeRegistrationtoString in class StorageInfopublic HdfsServerConstants.NamenodeRole getRole()
public boolean isRole(HdfsServerConstants.NamenodeRole that)
Copyright © 2013 Apache Software Foundation. All rights reserved.