public interface FlinkPipelineOptions extends PipelineOptions, ApplicationNameOptions, StreamingOptions, FileStagingOptions
Avoid using `org.apache.flink.*` members below. This allows including the flink runner without requiring flink on the classpath (e.g. to use with the direct runner).
PipelineOptions.AtomicLongFactory, PipelineOptions.CheckEnabled, PipelineOptions.DirectRunner, PipelineOptions.JobNameFactory, PipelineOptions.UserAgentFactory
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
AUTO |
static java.lang.String |
EXACTLY_ONCE |
static java.lang.String |
PIPELINED |
Modifier and Type | Method and Description |
---|---|
static FlinkPipelineOptions |
defaults() |
java.lang.Boolean |
getAllowNonRestoredState() |
java.lang.Long |
getAutoWatermarkInterval() |
java.lang.Long |
getCheckpointingInterval() |
java.lang.String |
getCheckpointingMode() |
java.lang.Long |
getCheckpointTimeoutMillis() |
java.lang.Boolean |
getDisableMetrics() |
java.lang.String |
getExecutionModeForBatch() |
java.lang.Long |
getExecutionRetryDelay() |
java.lang.Boolean |
getFailOnCheckpointingErrors() |
java.lang.Boolean |
getFasterCopy() |
boolean |
getFinishBundleBeforeCheckpointing() |
java.lang.String |
getFlinkMaster()
The url of the Flink JobManager on which to execute pipelines.
|
java.lang.Long |
getLatencyTrackingInterval() |
java.lang.Long |
getMaxBundleSize() |
java.lang.Long |
getMaxBundleTimeMills() |
java.lang.Integer |
getMaxParallelism() |
java.lang.Long |
getMinPauseBetweenCheckpoints() |
java.lang.Integer |
getNumberOfExecutionRetries() |
int |
getNumConcurrentCheckpoints() |
java.lang.Boolean |
getObjectReuse() |
java.lang.Integer |
getParallelism() |
java.lang.Boolean |
getReIterableGroupByKeyResult() |
java.lang.String |
getReportCheckpointDuration() |
java.lang.Boolean |
getRetainExternalizedCheckpointsOnCancellation() |
java.lang.String |
getSavepointPath() |
java.lang.Long |
getShutdownSourcesAfterIdleMs() |
java.lang.String |
getStateBackend() |
java.lang.Class<? extends FlinkStateBackendFactory> |
getStateBackendFactory()
Deprecated.
Please use setStateBackend below.
|
java.lang.String |
getStateBackendStoragePath() |
java.lang.Boolean |
isAutoBalanceWriteFilesShardingEnabled() |
java.lang.Boolean |
isExternalizedCheckpointsEnabled()
Enables or disables externalized checkpoints.
|
void |
setAllowNonRestoredState(java.lang.Boolean allowNonRestoredState) |
void |
setAutoBalanceWriteFilesShardingEnabled(java.lang.Boolean autoBalanceWriteFilesShardingEnabled) |
void |
setAutoWatermarkInterval(java.lang.Long interval) |
void |
setCheckpointingInterval(java.lang.Long interval) |
void |
setCheckpointingMode(java.lang.String mode) |
void |
setCheckpointTimeoutMillis(java.lang.Long checkpointTimeoutMillis) |
void |
setDisableMetrics(java.lang.Boolean disableMetrics) |
void |
setExecutionModeForBatch(java.lang.String executionMode) |
void |
setExecutionRetryDelay(java.lang.Long delay) |
void |
setExternalizedCheckpointsEnabled(java.lang.Boolean externalCheckpoints) |
void |
setFailOnCheckpointingErrors(java.lang.Boolean failOnCheckpointingErrors) |
void |
setFasterCopy(java.lang.Boolean fasterCopy) |
void |
setFinishBundleBeforeCheckpointing(boolean finishBundleBeforeCheckpointing) |
void |
setFlinkMaster(java.lang.String value) |
void |
setLatencyTrackingInterval(java.lang.Long interval) |
void |
setMaxBundleSize(java.lang.Long size) |
void |
setMaxBundleTimeMills(java.lang.Long time) |
void |
setMaxParallelism(java.lang.Integer value) |
void |
setMinPauseBetweenCheckpoints(java.lang.Long minPauseInterval) |
void |
setNumberOfExecutionRetries(java.lang.Integer retries) |
void |
setNumConcurrentCheckpoints(int maxConcurrentCheckpoints) |
void |
setObjectReuse(java.lang.Boolean reuse) |
void |
setParallelism(java.lang.Integer value) |
void |
setReIterableGroupByKeyResult(java.lang.Boolean reIterableGroupByKeyResult) |
void |
setReportCheckpointDuration(java.lang.String metricNamespace) |
void |
setRetainExternalizedCheckpointsOnCancellation(java.lang.Boolean retainOnCancellation) |
void |
setSavepointPath(java.lang.String path) |
void |
setShutdownSourcesAfterIdleMs(java.lang.Long timeoutMs) |
void |
setStateBackend(java.lang.String stateBackend) |
void |
setStateBackendFactory(java.lang.Class<? extends FlinkStateBackendFactory> stateBackendFactory)
Deprecated.
Please use setStateBackend below.
|
void |
setStateBackendStoragePath(java.lang.String path) |
isStreaming, setStreaming
getAppName, setAppName
as, getJobName, getOptionsId, getRunner, getStableUniqueNames, getTempLocation, getUserAgent, outputRuntimeOptions, setJobName, setOptionsId, setRunner, setStableUniqueNames, setTempLocation, setUserAgent
populateDisplayData
getFilesToStage, setFilesToStage
static final java.lang.String AUTO
static final java.lang.String PIPELINED
static final java.lang.String EXACTLY_ONCE
@Default.String(value="[auto]") java.lang.String getFlinkMaster()
void setFlinkMaster(java.lang.String value)
@Default.Integer(value=-1) java.lang.Integer getParallelism()
void setParallelism(java.lang.Integer value)
@Default.Integer(value=-1) java.lang.Integer getMaxParallelism()
void setMaxParallelism(java.lang.Integer value)
@Default.Long(value=-1L) java.lang.Long getCheckpointingInterval()
void setCheckpointingInterval(java.lang.Long interval)
@Default.String(value="EXACTLY_ONCE") java.lang.String getCheckpointingMode()
void setCheckpointingMode(java.lang.String mode)
@Default.Long(value=-1L) java.lang.Long getCheckpointTimeoutMillis()
void setCheckpointTimeoutMillis(java.lang.Long checkpointTimeoutMillis)
@Default.Long(value=-1L) java.lang.Long getMinPauseBetweenCheckpoints()
void setMinPauseBetweenCheckpoints(java.lang.Long minPauseInterval)
@Default.Integer(value=1) int getNumConcurrentCheckpoints()
void setNumConcurrentCheckpoints(int maxConcurrentCheckpoints)
@Default.Boolean(value=true) java.lang.Boolean getFailOnCheckpointingErrors()
void setFailOnCheckpointingErrors(java.lang.Boolean failOnCheckpointingErrors)
@Default.Boolean(value=false) boolean getFinishBundleBeforeCheckpointing()
void setFinishBundleBeforeCheckpointing(boolean finishBundleBeforeCheckpointing)
@Default.Long(value=-1L) java.lang.Long getShutdownSourcesAfterIdleMs()
void setShutdownSourcesAfterIdleMs(java.lang.Long timeoutMs)
@Default.Integer(value=-1) java.lang.Integer getNumberOfExecutionRetries()
void setNumberOfExecutionRetries(java.lang.Integer retries)
@Default.Long(value=-1L) java.lang.Long getExecutionRetryDelay()
void setExecutionRetryDelay(java.lang.Long delay)
@Default.Boolean(value=false) java.lang.Boolean getObjectReuse()
void setObjectReuse(java.lang.Boolean reuse)
@Deprecated java.lang.Class<? extends FlinkStateBackendFactory> getStateBackendFactory()
@Deprecated void setStateBackendFactory(java.lang.Class<? extends FlinkStateBackendFactory> stateBackendFactory)
void setStateBackend(java.lang.String stateBackend)
java.lang.String getStateBackend()
void setStateBackendStoragePath(java.lang.String path)
java.lang.String getStateBackendStoragePath()
@Default.Boolean(value=false) java.lang.Boolean getDisableMetrics()
void setDisableMetrics(java.lang.Boolean disableMetrics)
@Default.Boolean(value=false) java.lang.Boolean isExternalizedCheckpointsEnabled()
void setExternalizedCheckpointsEnabled(java.lang.Boolean externalCheckpoints)
@Default.Boolean(value=false) java.lang.Boolean getRetainExternalizedCheckpointsOnCancellation()
void setRetainExternalizedCheckpointsOnCancellation(java.lang.Boolean retainOnCancellation)
@Default.Long(value=1000L) java.lang.Long getMaxBundleSize()
void setMaxBundleSize(java.lang.Long size)
@Default.Long(value=1000L) java.lang.Long getMaxBundleTimeMills()
void setMaxBundleTimeMills(java.lang.Long time)
@Default.Long(value=0L) java.lang.Long getLatencyTrackingInterval()
void setLatencyTrackingInterval(java.lang.Long interval)
java.lang.Long getAutoWatermarkInterval()
void setAutoWatermarkInterval(java.lang.Long interval)
@Default.String(value="PIPELINED") java.lang.String getExecutionModeForBatch()
void setExecutionModeForBatch(java.lang.String executionMode)
java.lang.String getSavepointPath()
void setSavepointPath(java.lang.String path)
@Default.Boolean(value=false) java.lang.Boolean getAllowNonRestoredState()
void setAllowNonRestoredState(java.lang.Boolean allowNonRestoredState)
@Default.Boolean(value=false) java.lang.Boolean isAutoBalanceWriteFilesShardingEnabled()
void setAutoBalanceWriteFilesShardingEnabled(java.lang.Boolean autoBalanceWriteFilesShardingEnabled)
java.lang.String getReportCheckpointDuration()
void setReportCheckpointDuration(java.lang.String metricNamespace)
@Default.Boolean(value=false) java.lang.Boolean getReIterableGroupByKeyResult()
void setReIterableGroupByKeyResult(java.lang.Boolean reIterableGroupByKeyResult)
@Default.Boolean(value=false) java.lang.Boolean getFasterCopy()
void setFasterCopy(java.lang.Boolean fasterCopy)
static FlinkPipelineOptions defaults()