Class SCMUploaderProtocolPBClientImpl
java.lang.Object
org.apache.hadoop.yarn.server.api.impl.pb.client.SCMUploaderProtocolPBClientImpl
- All Implemented Interfaces:
Closeable,AutoCloseable,SCMUploaderProtocol
public class SCMUploaderProtocolPBClientImpl
extends Object
implements SCMUploaderProtocol, Closeable
-
Constructor Summary
ConstructorsConstructorDescriptionSCMUploaderProtocolPBClientImpl(long clientVersion, InetSocketAddress addr, org.apache.hadoop.conf.Configuration conf) -
Method Summary
Modifier and TypeMethodDescriptioncanUpload(SCMUploaderCanUploadRequest request) The method used by the NodeManager'sSharedCacheUploadServiceto request whether a resource can be uploaded.voidclose()notify(SCMUploaderNotifyRequest request) The method used by the NodeManager'sSharedCacheUploadServiceto notify the shared cache manager of a newly cached resource.
-
Constructor Details
-
SCMUploaderProtocolPBClientImpl
public SCMUploaderProtocolPBClientImpl(long clientVersion, InetSocketAddress addr, org.apache.hadoop.conf.Configuration conf) throws IOException - Throws:
IOException
-
-
Method Details
-
close
public void close()- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable
-
notify
public SCMUploaderNotifyResponse notify(SCMUploaderNotifyRequest request) throws org.apache.hadoop.yarn.exceptions.YarnException, IOException Description copied from interface:SCMUploaderProtocolThe 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.- Specified by:
notifyin interfaceSCMUploaderProtocol- 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
public SCMUploaderCanUploadResponse canUpload(SCMUploaderCanUploadRequest request) throws org.apache.hadoop.yarn.exceptions.YarnException, IOException Description copied from interface:SCMUploaderProtocolThe 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.- Specified by:
canUploadin interfaceSCMUploaderProtocol- 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.
-