Class FederationNamespaceInfo
java.lang.Object
org.apache.hadoop.hdfs.server.federation.router.RemoteLocationContext
org.apache.hadoop.hdfs.server.federation.resolver.FederationNamespaceInfo
- All Implemented Interfaces:
Comparable<RemoteLocationContext>
Represents information about a single nameservice/namespace in a federated
HDFS cluster.
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
FederationNamespaceInfo
-
-
Method Details
-
getNameserviceId
Description copied from class:RemoteLocationContextReturns an identifier for a unique namespace.- Specified by:
getNameserviceIdin classRemoteLocationContext- Returns:
- Namespace identifier.
-
getDest
Description copied from class:RemoteLocationContextDestination in this location. For example the path in a remote namespace.- Specified by:
getDestin classRemoteLocationContext- Returns:
- Destination in this location.
-
getSrc
Description copied from class:RemoteLocationContextOriginal source location.- Specified by:
getSrcin classRemoteLocationContext- Returns:
- Source path.
-
getClusterId
The HDFS cluster id for this namespace.- Returns:
- Cluster identifier.
-
getBlockPoolId
The HDFS block pool id for this namespace.- Returns:
- Block pool identifier.
-
toString
-
equals
- Overrides:
equalsin classRemoteLocationContext
-
hashCode
public int hashCode()- Overrides:
hashCodein classRemoteLocationContext
-
compareTo
- Specified by:
compareToin interfaceComparable<RemoteLocationContext>- Overrides:
compareToin classRemoteLocationContext
-