public class PackageUtil
extends java.lang.Object
implements java.io.Closeable
Modifier and Type | Class and Description |
---|---|
static class |
PackageUtil.StagedFile |
Modifier and Type | Method and Description |
---|---|
void |
close() |
java.util.concurrent.CompletionStage<org.apache.beam.runners.dataflow.util.PackageUtil.StagingResult> |
stagePackage(org.apache.beam.runners.dataflow.util.PackageUtil.PackageAttributes attributes,
com.google.api.client.util.Sleeper retrySleeper,
CreateOptions createOptions)
Stages one file ("package") if necessary.
|
DataflowPackage |
stageToFile(byte[] bytes,
java.lang.String target,
java.lang.String stagingPath,
CreateOptions createOptions) |
static PackageUtil |
withDefaultThreadPool() |
static PackageUtil |
withExecutorService(java.util.concurrent.ExecutorService executorService) |
public static PackageUtil withDefaultThreadPool()
public static PackageUtil withExecutorService(java.util.concurrent.ExecutorService executorService)
public void close()
close
in interface java.io.Closeable
close
in interface java.lang.AutoCloseable
public java.util.concurrent.CompletionStage<org.apache.beam.runners.dataflow.util.PackageUtil.StagingResult> stagePackage(org.apache.beam.runners.dataflow.util.PackageUtil.PackageAttributes attributes, com.google.api.client.util.Sleeper retrySleeper, CreateOptions createOptions)
public DataflowPackage stageToFile(byte[] bytes, java.lang.String target, java.lang.String stagingPath, CreateOptions createOptions)