@InterfaceAudience.Private
@InterfaceStability.Unstable
public interface SCMUploaderProtocol
The protocol between a NodeManager's
SharedCacheUploadService and the
SharedCacheManager.
| Modifier and Type | Method and Description |
|---|---|
SCMUploaderCanUploadResponse |
canUpload(SCMUploaderCanUploadRequest request)
The method used by the NodeManager's
SharedCacheUploadService
to request whether a resource can be uploaded. |
SCMUploaderNotifyResponse |
notify(SCMUploaderNotifyRequest request)
The method used by the NodeManager's
SharedCacheUploadService
to notify the shared cache manager of a newly cached resource. |
SCMUploaderNotifyResponse notify(SCMUploaderNotifyRequest request) throws org.apache.hadoop.yarn.exceptions.YarnException, IOException
The method used by the NodeManager's SharedCacheUploadService
to notify the shared cache manager of a newly cached resource.
The SharedCacheManager responds with whether or not the
NodeManager should delete the uploaded file.
request - notify the shared cache manager of a newly uploaded resource
to the shared cacheorg.apache.hadoop.yarn.exceptions.YarnException - exceptions from yarn servers.IOException - if there are I/O errors.SCMUploaderCanUploadResponse canUpload(SCMUploaderCanUploadRequest request) throws org.apache.hadoop.yarn.exceptions.YarnException, IOException
The method used by the NodeManager's SharedCacheUploadService
to request whether a resource can be uploaded.
The SharedCacheManager responds with whether or not the
NodeManager can upload the file.
request - whether the resource can be uploaded to the shared cacheorg.apache.hadoop.yarn.exceptions.YarnException - exceptions from yarn servers.IOException - if there are I/O errors.Copyright © 2008–2024 Apache Software Foundation. All rights reserved.