NodeRegistration@Private @Evolving public class NamenodeRegistration extends StorageInfo implements NodeRegistration
clusterID, cTime, layoutVersion, namespaceID, STORAGE_FILE_VERSION, storageType| Constructor | Description |
|---|---|
NamenodeRegistration(java.lang.String address,
java.lang.String httpAddress,
StorageInfo storageInfo,
HdfsServerConstants.NamenodeRole role) |
| Modifier and Type | Method | Description |
|---|---|---|
java.lang.String |
getAddress() |
Get address of the server node.
|
java.lang.String |
getHttpAddress() |
|
java.lang.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) |
|
java.lang.String |
toString() |
checkStorageType, getClusterID, getClusterIdFromColonSeparatedString, getCTime, getLayoutVersion, getNamespaceID, getNsIdFromColonSeparatedString, getProperty, getServiceLayoutFeatureMap, getServiceLayoutVersion, readPreviousVersionProperties, readProperties, readPropertiesFile, setClusterId, setcTime, setFieldsFromProperties, setLayoutVersion, setNamespaceID, setServiceLayoutVersion, setStorageInfo, toColonSeparatedString, toMapString, versionSupportsFederationpublic NamenodeRegistration(java.lang.String address,
java.lang.String httpAddress,
StorageInfo storageInfo,
HdfsServerConstants.NamenodeRole role)
public java.lang.String getAddress()
NodeRegistrationgetAddress in interface NodeRegistrationpublic java.lang.String getHttpAddress()
public java.lang.String getRegistrationID()
NodeRegistrationgetRegistrationID in interface NodeRegistrationpublic int getVersion()
NodeRegistrationgetVersion in interface NodeRegistrationpublic java.lang.String toString()
toString in interface NodeRegistrationtoString in class StorageInfopublic HdfsServerConstants.NamenodeRole getRole()
public boolean isRole(HdfsServerConstants.NamenodeRole that)
Copyright © 2008–2025 Apache Software Foundation. All rights reserved.