UseSharedCacheResourceResponse (Apache Hadoop YARN API 3.5.0 API)
Description: declaration: package: org.apache.hadoop.yarn.api.protocolrecords, class: UseSharedCacheResourceResponse

Package org.apache.hadoop.yarn.api.protocolrecords

# Class UseSharedCacheResourceResponse

java.lang.Object
org.apache.hadoop.yarn.api.protocolrecords.UseSharedCacheResourceResponse

@Public @Unstable public abstract class UseSharedCacheResourceResponse extends Object

The response from the SharedCacheManager to the client that indicates whether a requested resource exists in the cache.

- ## Constructor Summary

  Constructors
  Constructor
  Description
  `UseSharedCacheResourceResponse()`

- ## Method Summary

  Modifier and Type
  Method
  Description
  `abstract String`
  `getPath()`
  Get the `Path` corresponding to the requested resource in the shared cache.
  `abstract void`
  `setPath(String p)`
  Set the `Path` corresponding to a resource in the shared cache.

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

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

- ## Constructor Details

  - ### UseSharedCacheResourceResponse

    public UseSharedCacheResourceResponse()

- ## Method Details

  - ### getPath

    @Public @Unstable public abstract String getPath()
    Get the `Path` corresponding to the requested resource in the shared cache.
    Returns:
      String A `Path` if the resource exists in the shared cache, `null` otherwise

  - ### setPath

    @Public @Unstable public abstract void setPath(String p)
    Set the `Path` corresponding to a resource in the shared cache.
    Parameters:
      `p` - A `Path` corresponding to a resource in the shared cache