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. 
 | 
protected org.apache.beam.model.pipeline.v1.RunnerApi.Pipeline | 
writeArtifacts(org.apache.beam.model.pipeline.v1.RunnerApi.Pipeline pipeline,
              java.lang.String jobName)
Stages all dependencies in pipeline into the jar file at outputStream, returning a new pipeline
 that references these artifacts as classpath artifacts. 
 | 
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 PortablePipelineRunnerjava.lang.Exceptionprotected void copyResourcesFromJar(java.util.jar.JarFile inputJar)
                             throws java.io.IOException
inputJar to outputStream.java.io.IOExceptionprotected org.apache.beam.model.pipeline.v1.RunnerApi.Pipeline writeArtifacts(org.apache.beam.model.pipeline.v1.RunnerApi.Pipeline pipeline,
                                                                              java.lang.String jobName)
                                                                       throws java.io.IOException
java.io.IOException