java.lang.Object
org.apache.hadoop.hdfs.server.federation.router.RemoteLocationContext
org.apache.hadoop.hdfs.server.federation.resolver.RemoteLocation
All Implemented Interfaces:
Comparable<RemoteLocationContext>

public class RemoteLocation extends RemoteLocationContext
A location in a remote namespace consisting of a nameservice ID and a HDFS path (destination). It also contains the federated location (source).
  • Constructor Details

    • RemoteLocation

      public RemoteLocation(String nsId, String dPath, String sPath)
      Create a new remote location.
      Parameters:
      nsId - Destination namespace.
      dPath - Path in the destination namespace.
      sPath - Path in the federated level.
    • RemoteLocation

      public RemoteLocation(String nsId, String nnId, String dPath, String sPath)
      Create a new remote location pointing to a particular namenode in the namespace.
      Parameters:
      nsId - Destination namespace.
      nnId - Destination namenode.
      dPath - Path in the destination namespace.
      sPath - Path in the federated level
    • RemoteLocation

      public RemoteLocation(RemoteLocation remoteLocation, String path)
      Use the Ns and Nn of a remote location and another path to create a new remote location pointing.
      Parameters:
      remoteLocation - A remoteLocation.
      path - Path in the destination namespace.
  • Method Details