Class ArtifactRetrievalService
java.lang.Object
org.apache.beam.model.jobmanagement.v1.ArtifactRetrievalServiceGrpc.ArtifactRetrievalServiceImplBase
org.apache.beam.runners.fnexecution.artifact.ArtifactRetrievalService
- All Implemented Interfaces:
 AutoCloseable,org.apache.beam.model.jobmanagement.v1.ArtifactRetrievalServiceGrpc.AsyncService,FnService,org.apache.beam.vendor.grpc.v1p69p0.io.grpc.BindableService
public class ArtifactRetrievalService
extends org.apache.beam.model.jobmanagement.v1.ArtifactRetrievalServiceGrpc.ArtifactRetrievalServiceImplBase
implements FnService
An 
ArtifactRetrievalService that uses FileSystems as its backing storage.- 
Field Summary
Fields - 
Constructor Summary
ConstructorsConstructorDescriptionArtifactRetrievalService(int bufferSize) ArtifactRetrievalService(org.apache.beam.sdk.util.construction.ArtifactResolver resolver) ArtifactRetrievalService(org.apache.beam.sdk.util.construction.ArtifactResolver resolver, int bufferSize)  - 
Method Summary
Modifier and TypeMethodDescriptionvoidclose().voidgetArtifact(org.apache.beam.model.jobmanagement.v1.ArtifactApi.GetArtifactRequest request, org.apache.beam.vendor.grpc.v1p69p0.io.grpc.stub.StreamObserver<org.apache.beam.model.jobmanagement.v1.ArtifactApi.GetArtifactResponse> responseObserver) static InputStreamgetArtifact(org.apache.beam.model.pipeline.v1.RunnerApi.ArtifactInformation artifact) voidresolveArtifacts(org.apache.beam.model.jobmanagement.v1.ArtifactApi.ResolveArtifactsRequest request, org.apache.beam.vendor.grpc.v1p69p0.io.grpc.stub.StreamObserver<org.apache.beam.model.jobmanagement.v1.ArtifactApi.ResolveArtifactsResponse> responseObserver) Methods inherited from class org.apache.beam.model.jobmanagement.v1.ArtifactRetrievalServiceGrpc.ArtifactRetrievalServiceImplBase
bindServiceMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.apache.beam.vendor.grpc.v1p69p0.io.grpc.BindableService
bindService 
- 
Field Details
- 
DEFAULT_BUFFER_SIZE
public static final int DEFAULT_BUFFER_SIZE- See Also:
 
 - 
FILE_ARTIFACT_URN
- See Also:
 
 - 
URL_ARTIFACT_URN
- See Also:
 
 - 
EMBEDDED_ARTIFACT_URN
- See Also:
 
 - 
STAGING_TO_ARTIFACT_URN
- See Also:
 
 
 - 
 - 
Constructor Details
- 
ArtifactRetrievalService
public ArtifactRetrievalService() - 
ArtifactRetrievalService
public ArtifactRetrievalService(org.apache.beam.sdk.util.construction.ArtifactResolver resolver)  - 
ArtifactRetrievalService
public ArtifactRetrievalService(int bufferSize)  - 
ArtifactRetrievalService
public ArtifactRetrievalService(org.apache.beam.sdk.util.construction.ArtifactResolver resolver, int bufferSize)  
 - 
 - 
Method Details
- 
resolveArtifacts
public void resolveArtifacts(org.apache.beam.model.jobmanagement.v1.ArtifactApi.ResolveArtifactsRequest request, org.apache.beam.vendor.grpc.v1p69p0.io.grpc.stub.StreamObserver<org.apache.beam.model.jobmanagement.v1.ArtifactApi.ResolveArtifactsResponse> responseObserver) - Specified by:
 resolveArtifactsin interfaceorg.apache.beam.model.jobmanagement.v1.ArtifactRetrievalServiceGrpc.AsyncService
 - 
getArtifact
public void getArtifact(org.apache.beam.model.jobmanagement.v1.ArtifactApi.GetArtifactRequest request, org.apache.beam.vendor.grpc.v1p69p0.io.grpc.stub.StreamObserver<org.apache.beam.model.jobmanagement.v1.ArtifactApi.GetArtifactResponse> responseObserver) - Specified by:
 getArtifactin interfaceorg.apache.beam.model.jobmanagement.v1.ArtifactRetrievalServiceGrpc.AsyncService
 - 
getArtifact
public static InputStream getArtifact(org.apache.beam.model.pipeline.v1.RunnerApi.ArtifactInformation artifact) throws IOException - Throws:
 IOException
 - 
close
public void close()Description copied from interface:FnService.There should be no more calls to any service method by the time a call to
FnService.close()begins. Specifically, this means that aServerthat this service is bound to should have completed a call to theServer.shutdown()method, and all future incoming calls will be rejected.- Specified by:
 closein interfaceAutoCloseable- Specified by:
 closein interfaceFnService
 
 -