Class ArtifactRetrievalService
- java.lang.Object
-
- org.apache.beam.model.jobmanagement.v1.ArtifactRetrievalServiceGrpc.ArtifactRetrievalServiceImplBase
-
- org.apache.beam.runners.fnexecution.artifact.ArtifactRetrievalService
-
- All Implemented Interfaces:
java.lang.AutoCloseable,org.apache.beam.model.jobmanagement.v1.ArtifactRetrievalServiceGrpc.AsyncService,org.apache.beam.sdk.fn.server.FnService,org.apache.beam.vendor.grpc.v1p69p0.io.grpc.BindableService
public class ArtifactRetrievalService extends org.apache.beam.model.jobmanagement.v1.ArtifactRetrievalServiceGrpc.ArtifactRetrievalServiceImplBase implements org.apache.beam.sdk.fn.server.FnServiceAnArtifactRetrievalServicethat usesFileSystemsas its backing storage.
-
-
Field Summary
Fields Modifier and Type Field Description static intDEFAULT_BUFFER_SIZEstatic java.lang.StringEMBEDDED_ARTIFACT_URNstatic java.lang.StringFILE_ARTIFACT_URNstatic java.lang.StringSTAGING_TO_ARTIFACT_URNstatic java.lang.StringURL_ARTIFACT_URN
-
Constructor Summary
Constructors Constructor Description ArtifactRetrievalService()ArtifactRetrievalService(int bufferSize)ArtifactRetrievalService(org.apache.beam.sdk.util.construction.ArtifactResolver resolver)ArtifactRetrievalService(org.apache.beam.sdk.util.construction.ArtifactResolver resolver, int bufferSize)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclose()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 java.io.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
bindService
-
-
-
-
Field Detail
-
DEFAULT_BUFFER_SIZE
public static final int DEFAULT_BUFFER_SIZE
- See Also:
- Constant Field Values
-
FILE_ARTIFACT_URN
public static final java.lang.String FILE_ARTIFACT_URN
- See Also:
- Constant Field Values
-
URL_ARTIFACT_URN
public static final java.lang.String URL_ARTIFACT_URN
- See Also:
- Constant Field Values
-
EMBEDDED_ARTIFACT_URN
public static final java.lang.String EMBEDDED_ARTIFACT_URN
- See Also:
- Constant Field Values
-
STAGING_TO_ARTIFACT_URN
public static final java.lang.String STAGING_TO_ARTIFACT_URN
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
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 Detail
-
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 java.io.InputStream getArtifact(org.apache.beam.model.pipeline.v1.RunnerApi.ArtifactInformation artifact) throws java.io.IOException- Throws:
java.io.IOException
-
close
public void close()
- Specified by:
closein interfacejava.lang.AutoCloseable- Specified by:
closein interfaceorg.apache.beam.sdk.fn.server.FnService
-
-