Package org.apache.beam.sdk.options
Interface PortablePipelineOptions
- All Superinterfaces:
FileStagingOptions
,HasDisplayData
,PipelineOptions
- All Known Subinterfaces:
PrismPipelineOptions
,SparkPortableStreamingPipelineOptions
,TestPortablePipelineOptions
,TestPrismPipelineOptions
,TestUniversalRunner.Options
Pipeline options common to all portable runners.
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.apache.beam.sdk.options.PipelineOptions
PipelineOptions.AtomicLongFactory, PipelineOptions.CheckEnabled, PipelineOptions.DirectRunner, PipelineOptions.JobNameFactory, PipelineOptions.UserAgentFactory
-
Method Summary
Modifier and TypeMethodDescriptionboolean
If true and PipelineOption tempLocation is set, save a heap dump before shutting down the JVM due to GC thrashing or out of memory.int
int
static String
getEnvironmentOption
(PortablePipelineOptions options, String environmentOptionName) Return the value for the specified environment option or empty string if not present.int
boolean
int
void
void
setDefaultEnvironmentType
(String environmentType) void
setEnableHeapDumps
(boolean enableHeapDumps) void
setEnvironmentCacheMillis
(int environmentCacheMillis) void
setEnvironmentExpirationMillis
(int environmentExpirationMillis) void
setEnvironmentOptions
(List<String> value) void
setJobEndpoint
(String endpoint) void
setJobServerTimeout
(int timeout) void
setLoadBalanceBundles
(boolean loadBalanceBundles) void
setOutputExecutablePath
(String outputExecutablePath) void
setSdkWorkerParallelism
(int parallelism) Methods inherited from interface org.apache.beam.sdk.options.FileStagingOptions
getFilesToStage, setFilesToStage
Methods inherited from interface org.apache.beam.sdk.transforms.display.HasDisplayData
populateDisplayData
Methods inherited from interface org.apache.beam.sdk.options.PipelineOptions
as, getJobName, getOptionsId, getRunner, getStableUniqueNames, getTempLocation, getUserAgent, outputRuntimeOptions, revision, setJobName, setOptionsId, setRunner, setStableUniqueNames, setTempLocation, setUserAgent
-
Method Details
-
getJobEndpoint
-
setJobEndpoint
-
getJobServerTimeout
-
setJobServerTimeout
void setJobServerTimeout(int timeout) -
getDefaultEnvironmentType
-
setDefaultEnvironmentType
-
getDefaultEnvironmentConfig
-
setDefaultEnvironmentConfig
-
getSdkWorkerParallelism
-
setSdkWorkerParallelism
void setSdkWorkerParallelism(int parallelism) -
getEnvironmentCacheMillis
-
setEnvironmentCacheMillis
void setEnvironmentCacheMillis(int environmentCacheMillis) -
getEnvironmentExpirationMillis
-
setEnvironmentExpirationMillis
void setEnvironmentExpirationMillis(int environmentExpirationMillis) -
getLoadBalanceBundles
-
setLoadBalanceBundles
void setLoadBalanceBundles(boolean loadBalanceBundles) -
getOutputExecutablePath
-
setOutputExecutablePath
-
getEnvironmentOptions
-
setEnvironmentOptions
-
getEnvironmentOption
Return the value for the specified environment option or empty string if not present. -
getEnableHeapDumps
If true and PipelineOption tempLocation is set, save a heap dump before shutting down the JVM due to GC thrashing or out of memory. The heap will be dumped to local disk and then uploaded to the tempLocation.CAUTION: Heap dumps can take up more disk than the JVM memory. Ensure the local disk is configured to have sufficient free space before enabling this option.
-
setEnableHeapDumps
void setEnableHeapDumps(boolean enableHeapDumps)
-