java.lang.Object
org.apache.hadoop.hdfs.server.federation.router.RemoteResult<T,R>
Type Parameters:
T - Type of the remote location.
R - Type of the result.

public class RemoteResult<T extends RemoteLocationContext,R> extends Object
Result from a remote location. It includes the exception if there was any error.
  • Constructor Details

    • RemoteResult

      public RemoteResult(T location, R r)
    • RemoteResult

      public RemoteResult(T location, IOException e)
  • Method Details

    • getLocation

      public T getLocation()
    • hasResult

      public boolean hasResult()
    • getResult

      public R getResult()
    • hasException

      public boolean hasException()
    • getException

      public IOException getException()
    • toString

      public String toString()
      Overrides:
      toString in class Object