Class NamespaceInfo
java.lang.Object
org.apache.hadoop.hdfs.server.common.StorageInfo
org.apache.hadoop.hdfs.server.protocol.NamespaceInfo
NamespaceInfo is returned by the name-node in reply
to a data-node handshake.
-
Nested Class Summary
Nested Classes -
Field Summary
Fields inherited from class org.apache.hadoop.hdfs.server.common.StorageInfo
clusterID, cTime, layoutVersion, namespaceID, STORAGE_FILE_VERSION, storageType -
Constructor Summary
ConstructorsConstructorDescriptionNamespaceInfo(int nsID, String clusterID, String bpID, long cT) NamespaceInfo(int nsID, String clusterID, String bpID, long cT, String buildVersion, String softwareVersion) NamespaceInfo(int nsID, String clusterID, String bpID, long cT, String buildVersion, String softwareVersion, long capabilities) NamespaceInfo(int nsID, String clusterID, String bpID, long cT, String buildVersion, String softwareVersion, long capabilities, org.apache.hadoop.ha.HAServiceProtocol.HAServiceState st) NamespaceInfo(int nsID, String clusterID, String bpID, long cT, org.apache.hadoop.ha.HAServiceProtocol.HAServiceState st) NamespaceInfo(StorageInfo storage) NamespaceInfo(StorageInfo storage, org.apache.hadoop.ha.HAServiceProtocol.HAServiceState st) -
Method Summary
Modifier and TypeMethodDescriptionlongorg.apache.hadoop.ha.HAServiceProtocol.HAServiceStategetState()booleanisCapabilitySupported(NamespaceInfo.Capability capability) voidsetBlockPoolID(String blockPoolID) voidsetCapabilities(long capabilities) voidsetClusterID(String clusterID) voidsetState(org.apache.hadoop.ha.HAServiceProtocol.HAServiceState state) toString()voidvalidateStorage(NNStorage storage) Methods inherited from class org.apache.hadoop.hdfs.server.common.StorageInfo
checkStorageType, getClusterID, getClusterIdFromColonSeparatedString, getCTime, getLayoutVersion, getNamespaceID, getNsIdFromColonSeparatedString, getProperty, getServiceLayoutFeatureMap, getServiceLayoutVersion, readPreviousVersionProperties, readProperties, readPropertiesFile, setClusterId, setcTime, setFieldsFromProperties, setLayoutVersion, setNamespaceID, setServiceLayoutVersion, setStorageInfo, toColonSeparatedString, toMapString, versionSupportsFederation
-
Constructor Details
-
NamespaceInfo
public NamespaceInfo() -
NamespaceInfo
-
NamespaceInfo
-
NamespaceInfo
-
NamespaceInfo
-
NamespaceInfo
-
NamespaceInfo
-
NamespaceInfo
-
-
Method Details
-
getCapabilities
public long getCapabilities() -
setCapabilities
@VisibleForTesting public void setCapabilities(long capabilities) -
setState
@VisibleForTesting public void setState(org.apache.hadoop.ha.HAServiceProtocol.HAServiceState state) -
isCapabilitySupported
-
getBuildVersion
-
getBlockPoolID
-
getSoftwareVersion
-
getState
public org.apache.hadoop.ha.HAServiceProtocol.HAServiceState getState() -
setClusterID
-
setBlockPoolID
-
toString
- Overrides:
toStringin classStorageInfo
-
validateStorage
- Throws:
IOException
-