Class SCMUploaderNotifyResponse

java.lang.Object
org.apache.hadoop.yarn.server.api.protocolrecords.SCMUploaderNotifyResponse
Direct Known Subclasses:
SCMUploaderNotifyResponsePBImpl

@Private @Unstable public abstract class SCMUploaderNotifyResponse extends Object

The response from the SharedCacheManager to the NodeManager that indicates whether the NodeManager needs to delete the cached resource it was sending the notification for.

  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    abstract boolean
    Get whether or not the shared cache manager has accepted the notified resource (i.e. the uploaded file should remain in the cache).
    abstract void
    setAccepted(boolean b)
    Set whether or not the shared cache manager has accepted the notified resource (i.e. the uploaded file should remain in the cache).

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • SCMUploaderNotifyResponse

      public SCMUploaderNotifyResponse()
  • Method Details

    • getAccepted

      public abstract boolean getAccepted()
      Get whether or not the shared cache manager has accepted the notified resource (i.e. the uploaded file should remain in the cache).
      Returns:
      boolean True if the resource has been accepted, false otherwise.
    • setAccepted

      public abstract void setAccepted(boolean b)
      Set whether or not the shared cache manager has accepted the notified resource (i.e. the uploaded file should remain in the cache).
      Parameters:
      b - True if the resource has been accepted, false otherwise.