Class SCMUploaderNotifyRequest
java.lang.Object
org.apache.hadoop.yarn.server.api.protocolrecords.SCMUploaderNotifyRequest
- Direct Known Subclasses:
SCMUploaderNotifyRequestPBImpl
The request from the NodeManager to the SharedCacheManager that
notifies that a resource has been uploaded to the shared cache. The
SharedCacheManager may reject the resource for various reasons,
in which case the NodeManager should remove it from the shared cache.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabstract StringGet the filename of the resource that was just uploaded to the shared cache.abstract StringGet thekeyof the resource that was just uploaded to the shared cache.abstract voidsetFilename(String filename) Set the filename of the resource that was just uploaded to the shared cache.abstract voidsetResourceKey(String key) Set thekeyof the resource that was just uploaded to the shared cache.
-
Constructor Details
-
SCMUploaderNotifyRequest
public SCMUploaderNotifyRequest()
-
-
Method Details
-
getFileName
Get the filename of the resource that was just uploaded to the shared cache.- Returns:
- the filename
-
setFilename
Set the filename of the resource that was just uploaded to the shared cache.- Parameters:
filename- the name of the file
-
getResourceKey
Get thekeyof the resource that was just uploaded to the shared cache.- Returns:
key
-
setResourceKey
Set thekeyof the resource that was just uploaded to the shared cache.- Parameters:
key- unique identifier for the resource
-