Class SCMUploaderNotifyResponse
java.lang.Object
org.apache.hadoop.yarn.server.api.protocolrecords.SCMUploaderNotifyResponse
- Direct Known Subclasses:
SCMUploaderNotifyResponsePBImpl
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 -
Method Summary
Modifier and TypeMethodDescriptionabstract booleanGet whether or not the shared cache manager has accepted the notified resource (i.e. the uploaded file should remain in the cache).abstract voidsetAccepted(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).
-
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.
-