RemoteResult (Apache Hadoop HDFS-RBF 3.5.0 API)
Description: declaration: package: org.apache.hadoop.hdfs.server.federation.router, class: RemoteResult

Package org.apache.hadoop.hdfs.server.federation.router

# Class RemoteResult<T extends RemoteLocationContext,R>

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 Summary

  Constructors
  Constructor
  Description
  `RemoteResult(T location, IOException e)`
  `RemoteResult(T location, R r)`

- ## Method Summary

  Modifier and Type
  Method
  Description
  `IOException`
  `getException()`
  `T`
  `getLocation()`
  `R`
  `getResult()`
  `boolean`
  `hasException()`
  `boolean`
  `hasResult()`
  `String`
  `toString()`

  ### Methods inherited from class java.lang.Object

  `clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait`

- ## 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`