Class PackageUtil
java.lang.Object
org.apache.beam.runners.dataflow.util.PackageUtil
- All Implemented Interfaces:
Closeable,AutoCloseable
Helper routines for packages.
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()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.stageToFile(byte[] bytes, String target, String stagingPath, CreateOptions createOptions) static PackageUtilstatic PackageUtilwithExecutorService(ExecutorService executorService)
-
Method Details
-
withDefaultThreadPool
-
withExecutorService
-
close
public void close()- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable
-
stagePackage
public 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. -
stageToFile
public DataflowPackage stageToFile(byte[] bytes, String target, String stagingPath, CreateOptions createOptions)
-