java.io.Closeable, java.lang.AutoCloseable, SCMUploaderProtocolpublic class SCMUploaderProtocolPBClientImpl extends java.lang.Object implements SCMUploaderProtocol, java.io.Closeable
| Constructor | Description |
|---|---|
SCMUploaderProtocolPBClientImpl(long clientVersion,
java.net.InetSocketAddress addr,
org.apache.hadoop.conf.Configuration conf) |
| Modifier and Type | Method | Description |
|---|---|---|
SCMUploaderCanUploadResponse |
canUpload(SCMUploaderCanUploadRequest request) |
The method used by the NodeManager's
SharedCacheUploadService
to request whether a resource can be uploaded. |
void |
close() |
|
SCMUploaderNotifyResponse |
notify(SCMUploaderNotifyRequest request) |
The method used by the NodeManager's
SharedCacheUploadService
to notify the shared cache manager of a newly cached resource. |
public SCMUploaderProtocolPBClientImpl(long clientVersion,
java.net.InetSocketAddress addr,
org.apache.hadoop.conf.Configuration conf)
throws java.io.IOException
java.io.IOExceptionpublic void close()
close in interface java.lang.AutoCloseableclose in interface java.io.Closeablepublic SCMUploaderNotifyResponse notify(SCMUploaderNotifyRequest request) throws org.apache.hadoop.yarn.exceptions.YarnException, java.io.IOException
SCMUploaderProtocol
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.
notify in interface SCMUploaderProtocolrequest - notify the shared cache manager of a newly uploaded resource
to the shared cacheorg.apache.hadoop.yarn.exceptions.YarnException - exceptions from yarn servers.java.io.IOException - if there are I/O errors.public SCMUploaderCanUploadResponse canUpload(SCMUploaderCanUploadRequest request) throws org.apache.hadoop.yarn.exceptions.YarnException, java.io.IOException
SCMUploaderProtocol
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.
canUpload in interface SCMUploaderProtocolrequest - whether the resource can be uploaded to the shared cacheorg.apache.hadoop.yarn.exceptions.YarnException - exceptions from yarn servers.java.io.IOException - if there are I/O errors.Copyright © 2008–2025 Apache Software Foundation. All rights reserved.