public interface FlinkPipelineOptions extends PipelineOptions, ApplicationNameOptions, StreamingOptions
PipelineOptions.AtomicLongFactory, PipelineOptions.CheckEnabled, PipelineOptions.DirectRunner, PipelineOptions.JobNameFactory, PipelineOptions.NoOpMetricsSink, PipelineOptions.UserAgentFactory
Modifier and Type | Method and Description |
---|---|
java.lang.Long |
getCheckpointingInterval() |
org.apache.flink.streaming.api.CheckpointingMode |
getCheckpointingMode() |
java.lang.Long |
getCheckpointTimeoutMillis() |
java.lang.Boolean |
getEnableMetrics() |
java.lang.Long |
getExecutionRetryDelay() |
java.util.List<java.lang.String> |
getFilesToStage()
List of local files to make available to workers.
|
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 |
getNumberOfExecutionRetries() |
java.lang.Boolean |
getObjectReuse() |
java.lang.Integer |
getParallelism() |
java.lang.Boolean |
getRetainExternalizedCheckpointsOnCancellation() |
org.apache.flink.runtime.state.AbstractStateBackend |
getStateBackend()
State backend to store Beam's state during computation.
|
java.lang.Boolean |
isExternalizedCheckpointsEnabled()
Enables or disables externalized checkpoints.
|
java.lang.Boolean |
isShutdownSourcesOnFinalWatermark()
Whether to shutdown sources when their watermark reaches
+Inf . |
void |
setCheckpointingInterval(java.lang.Long interval) |
void |
setCheckpointingMode(org.apache.flink.streaming.api.CheckpointingMode mode) |
void |
setCheckpointTimeoutMillis(java.lang.Long checkpointTimeoutMillis) |
void |
setEnableMetrics(java.lang.Boolean enableMetrics) |
void |
setExecutionRetryDelay(java.lang.Long delay) |
void |
setExternalizedCheckpointsEnabled(java.lang.Boolean externalCheckpoints) |
void |
setFilesToStage(java.util.List<java.lang.String> value) |
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 |
setNumberOfExecutionRetries(java.lang.Integer retries) |
void |
setObjectReuse(java.lang.Boolean reuse) |
void |
setParallelism(java.lang.Integer value) |
void |
setRetainExternalizedCheckpointsOnCancellation(java.lang.Boolean retainOnCancellation) |
void |
setShutdownSourcesOnFinalWatermark(java.lang.Boolean shutdownOnFinalWatermark) |
void |
setStateBackend(org.apache.flink.runtime.state.AbstractStateBackend stateBackend) |
isStreaming, setStreaming
getAppName, setAppName
as, getJobName, getMetricsHttpSinkUrl, getMetricsPushPeriod, getMetricsSink, getOptionsId, getRunner, getStableUniqueNames, getTempLocation, getUserAgent, outputRuntimeOptions, setJobName, setMetricsHttpSinkUrl, setMetricsPushPeriod, setMetricsSink, setOptionsId, setRunner, setStableUniqueNames, setTempLocation, setUserAgent
populateDisplayData
java.util.List<java.lang.String> getFilesToStage()
Jars are placed on the worker's classpath.
The default value is the list of jars from the main program's classpath.
void setFilesToStage(java.util.List<java.lang.String> value)
java.lang.String getFlinkMaster()
void setFlinkMaster(java.lang.String value)
@Default.InstanceFactory(value=DefaultParallelismFactory.class) java.lang.Integer getParallelism()
void setParallelism(java.lang.Integer value)
@Default.Long(value=-1L) java.lang.Long getCheckpointingInterval()
void setCheckpointingInterval(java.lang.Long interval)
@Default.Enum(value="AT_LEAST_ONCE") org.apache.flink.streaming.api.CheckpointingMode getCheckpointingMode()
void setCheckpointingMode(org.apache.flink.streaming.api.CheckpointingMode mode)
@Default.Long(value=1200000L) java.lang.Long getCheckpointTimeoutMillis()
void setCheckpointTimeoutMillis(java.lang.Long checkpointTimeoutMillis)
@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)
org.apache.flink.runtime.state.AbstractStateBackend getStateBackend()
void setStateBackend(org.apache.flink.runtime.state.AbstractStateBackend stateBackend)
@Default.Boolean(value=true) java.lang.Boolean getEnableMetrics()
void setEnableMetrics(java.lang.Boolean enableMetrics)
@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.Boolean(value=false) java.lang.Boolean isShutdownSourcesOnFinalWatermark()
+Inf
. For production use cases
you want this to be disabled because Flink will currently (versions <= 1.5) stop
doing checkpoints when any operator (which includes sources) is finished.
Please see FLINK-2491 for progress on this issue.
void setShutdownSourcesOnFinalWatermark(java.lang.Boolean shutdownOnFinalWatermark)
@Default.Long(value=0L) java.lang.Long getLatencyTrackingInterval()
void setLatencyTrackingInterval(java.lang.Long interval)