Class SCMUploaderCanUploadResponse
java.lang.Object
org.apache.hadoop.yarn.server.api.protocolrecords.SCMUploaderCanUploadResponse
- Direct Known Subclasses:
SCMUploaderCanUploadResponsePBImpl
The response from the SharedCacheManager to the NodeManager that indicates whether the NodeManager can upload the resource to the shared cache. If it is not accepted by SCM, the NodeManager should not upload it to the shared cache.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabstract booleanGet whether or not the node manager can upload the resource to the shared cache.abstract voidsetUploadable(boolean b) Set whether or not the node manager can upload the resource to the shared cache.
-
Constructor Details
-
SCMUploaderCanUploadResponse
public SCMUploaderCanUploadResponse()
-
-
Method Details
-
getUploadable
public abstract boolean getUploadable()Get whether or not the node manager can upload the resource to the shared cache.- Returns:
- boolean True if the resource can be uploaded, false otherwise.
-
setUploadable
public abstract void setUploadable(boolean b) Set whether or not the node manager can upload the resource to the shared cache.- Parameters:
b- True if the resource can be uploaded, false otherwise.
-