public class PortablePipelineJarCreator extends java.lang.Object implements PortablePipelineRunner
PortablePipelineRunner
that bundles the input pipeline along with all dependencies,
artifacts, etc. required to run the pipeline into a jar that can be executed later.
Each PortablePipelineJarCreator
instance is not threadsafe; a new instance is expected
to be constructed and run(org.apache.beam.model.pipeline.v1.RunnerApi.Pipeline, org.apache.beam.runners.fnexecution.provisioning.JobInfo)
once per job.
Constructor and Description |
---|
PortablePipelineJarCreator(java.lang.Class mainClass) |
Modifier and Type | Method and Description |
---|---|
protected void |
copyResourcesFromJar(java.util.jar.JarFile inputJar)
Copy resources from
inputJar to outputStream . |
PortablePipelineResult |
run(org.apache.beam.model.pipeline.v1.RunnerApi.Pipeline pipeline,
JobInfo jobInfo)
Does not actually run the pipeline. Instead bundles the input pipeline along with all
dependencies, artifacts, etc.
|
public PortablePipelineJarCreator(java.lang.Class mainClass)
public PortablePipelineResult run(org.apache.beam.model.pipeline.v1.RunnerApi.Pipeline pipeline, JobInfo jobInfo) throws java.lang.Exception
run
in interface PortablePipelineRunner
java.lang.Exception
protected void copyResourcesFromJar(java.util.jar.JarFile inputJar) throws java.io.IOException
inputJar
to outputStream
.java.io.IOException