public class SCMUploaderProtocolPBClientImpl extends Object implements SCMUploaderProtocol, Closeable
Constructor and Description |
---|
SCMUploaderProtocolPBClientImpl(long clientVersion,
InetSocketAddress addr,
org.apache.hadoop.conf.Configuration conf) |
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. |
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, InetSocketAddress addr, org.apache.hadoop.conf.Configuration conf) throws IOException
IOException
public void close()
close
in interface Closeable
close
in interface AutoCloseable
public SCMUploaderNotifyResponse notify(SCMUploaderNotifyRequest request) throws org.apache.hadoop.yarn.exceptions.YarnException, 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 SCMUploaderProtocol
request
- notify the shared cache manager of a newly uploaded resource
to the shared cacheorg.apache.hadoop.yarn.exceptions.YarnException
IOException
public SCMUploaderCanUploadResponse canUpload(SCMUploaderCanUploadRequest request) throws org.apache.hadoop.yarn.exceptions.YarnException, 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 SCMUploaderProtocol
request
- whether the resource can be uploaded to the shared cacheorg.apache.hadoop.yarn.exceptions.YarnException
IOException
Copyright © 2022 Apache Software Foundation. All rights reserved.