Interface SCMUploaderProtocol
- All Known Implementing Classes:
SCMUploaderProtocolPBClientImpl
@Private
@Unstable
public interface SCMUploaderProtocol
The protocol between a NodeManager's
SharedCacheUploadService and the
SharedCacheManager.
-
Method Summary
Modifier and TypeMethodDescriptioncanUpload(SCMUploaderCanUploadRequest request) The method used by the NodeManager'sSharedCacheUploadServiceto request whether a resource can be uploaded.notify(SCMUploaderNotifyRequest request) The method used by the NodeManager'sSharedCacheUploadServiceto notify the shared cache manager of a newly cached resource.
-
Method Details
-
notify
SCMUploaderNotifyResponse notify(SCMUploaderNotifyRequest request) throws org.apache.hadoop.yarn.exceptions.YarnException, IOException The method used by the NodeManager's
SharedCacheUploadServiceto notify the shared cache manager of a newly cached resource.The
SharedCacheManagerresponds with whether or not the NodeManager should delete the uploaded file.- Parameters:
request- notify the shared cache manager of a newly uploaded resource to the shared cache- Returns:
- response indicating if the newly uploaded resource should be deleted
- Throws:
org.apache.hadoop.yarn.exceptions.YarnException- exceptions from yarn servers.IOException- if there are I/O errors.
-
canUpload
SCMUploaderCanUploadResponse canUpload(SCMUploaderCanUploadRequest request) throws org.apache.hadoop.yarn.exceptions.YarnException, IOException The method used by the NodeManager's
SharedCacheUploadServiceto request whether a resource can be uploaded.The
SharedCacheManagerresponds with whether or not the NodeManager can upload the file.- Parameters:
request- whether the resource can be uploaded to the shared cache- Returns:
- response indicating if resource can be uploaded to the shared cache
- Throws:
org.apache.hadoop.yarn.exceptions.YarnException- exceptions from yarn servers.IOException- if there are I/O errors.
-