Class MultipleInputStreamTask<OUT>
- java.lang.Object
-
- org.apache.flink.streaming.runtime.tasks.StreamTask<OUT,MultipleInputStreamOperator<OUT>>
-
- org.apache.flink.streaming.runtime.tasks.MultipleInputStreamTask<OUT>
-
- All Implemented Interfaces:
org.apache.flink.runtime.jobgraph.tasks.CheckpointableTask,org.apache.flink.runtime.jobgraph.tasks.CoordinatedTask,org.apache.flink.runtime.jobgraph.tasks.TaskInvokable,org.apache.flink.runtime.taskmanager.AsyncExceptionHandler,ContainingTaskDetails
@Internal public class MultipleInputStreamTask<OUT> extends StreamTask<OUT,MultipleInputStreamOperator<OUT>>
AStreamTaskfor executing aMultipleInputStreamOperatorand supporting theMultipleInputStreamOperatorto select input for reading.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.apache.flink.streaming.runtime.tasks.StreamTask
StreamTask.CanEmitBatchOfRecordsChecker
-
-
Field Summary
-
Fields inherited from class org.apache.flink.streaming.runtime.tasks.StreamTask
checkpointStorage, configuration, inputProcessor, LOG, mailboxProcessor, mainOperator, operatorChain, recordWriter, stateBackend, systemTimerService, timerService, TRIGGER_THREAD_GROUP
-
-
Constructor Summary
Constructors Constructor Description MultipleInputStreamTask(org.apache.flink.runtime.execution.Environment env)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidabortCheckpointOnBarrier(long checkpointId, org.apache.flink.runtime.checkpoint.CheckpointException cause)protected voidadvanceToEndOfEventTime()Emits theMAX_WATERMARKso that all registered timers are fired.protected voidcreateInputProcessor(List<org.apache.flink.runtime.io.network.partition.consumer.IndexedInputGate>[] inputGates, StreamConfig.InputConfig[] inputs, WatermarkGauge[] inputWatermarkGauges, java.util.function.Function<Integer,StreamPartitioner<?>> gatePartitioners)StreamTask.CanEmitBatchOfRecordsCheckergetCanEmitBatchOfRecords()protected Optional<CheckpointBarrierHandler>getCheckpointBarrierHandler()Acquires the optionalCheckpointBarrierHandlerassociated with this stream task.voidinit()CompletableFuture<Boolean>triggerCheckpointAsync(org.apache.flink.runtime.checkpoint.CheckpointMetaData metadata, org.apache.flink.runtime.checkpoint.CheckpointOptions options)voidtriggerCheckpointOnBarrier(org.apache.flink.runtime.checkpoint.CheckpointMetaData checkpointMetaData, org.apache.flink.runtime.checkpoint.CheckpointOptions checkpointOptions, org.apache.flink.runtime.checkpoint.CheckpointMetricsBuilder checkpointMetrics)-
Methods inherited from class org.apache.flink.streaming.runtime.tasks.StreamTask
afterInvoke, cancel, cancelTask, cleanUp, cleanUpInternal, createRecordWriterDelegate, createStreamTaskStateInitializer, declineCheckpoint, dispatchOperatorEvent, endData, finalize, getAsyncCheckpointStartDelayNanos, getAsyncOperationsThreadPool, getCancelables, getCheckpointStorage, getCompletionFuture, getConfiguration, getEnvironment, getMailboxExecutorFactory, getName, getProcessingTimeServiceFactory, handleAsyncException, invoke, isCanceled, isFailing, isMailboxLoopRunning, isRunning, isUsingNonBlockingInput, maybeInterruptOnCancel, notifyCheckpointAbortAsync, notifyCheckpointCompleteAsync, notifyCheckpointSubsumedAsync, notifyEndOfData, processInput, restore, runMailboxLoop, runMailboxStep, setSynchronousSavepoint, setupNumRecordsInCounter, toString
-
Methods inherited from class java.lang.Object
clone, equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface org.apache.flink.streaming.runtime.tasks.ContainingTaskDetails
getExecutionConfig, getIndexInSubtaskGroup, getJobConfiguration, getUserCodeClassLoader
-
-
-
-
Method Detail
-
init
public void init() throws Exception- Specified by:
initin classStreamTask<OUT,MultipleInputStreamOperator<OUT>>- Throws:
Exception
-
createInputProcessor
protected void createInputProcessor(List<org.apache.flink.runtime.io.network.partition.consumer.IndexedInputGate>[] inputGates, StreamConfig.InputConfig[] inputs, WatermarkGauge[] inputWatermarkGauges, java.util.function.Function<Integer,StreamPartitioner<?>> gatePartitioners)
-
getCheckpointBarrierHandler
protected Optional<CheckpointBarrierHandler> getCheckpointBarrierHandler()
Description copied from class:StreamTaskAcquires the optionalCheckpointBarrierHandlerassociated with this stream task. TheCheckpointBarrierHandlershould exist if the task has data inputs and requires to align the barriers.- Overrides:
getCheckpointBarrierHandlerin classStreamTask<OUT,MultipleInputStreamOperator<OUT>>
-
triggerCheckpointAsync
public CompletableFuture<Boolean> triggerCheckpointAsync(org.apache.flink.runtime.checkpoint.CheckpointMetaData metadata, org.apache.flink.runtime.checkpoint.CheckpointOptions options)
- Specified by:
triggerCheckpointAsyncin interfaceorg.apache.flink.runtime.jobgraph.tasks.CheckpointableTask- Overrides:
triggerCheckpointAsyncin classStreamTask<OUT,MultipleInputStreamOperator<OUT>>
-
getCanEmitBatchOfRecords
public StreamTask.CanEmitBatchOfRecordsChecker getCanEmitBatchOfRecords()
- Overrides:
getCanEmitBatchOfRecordsin classStreamTask<OUT,MultipleInputStreamOperator<OUT>>
-
triggerCheckpointOnBarrier
public void triggerCheckpointOnBarrier(org.apache.flink.runtime.checkpoint.CheckpointMetaData checkpointMetaData, org.apache.flink.runtime.checkpoint.CheckpointOptions checkpointOptions, org.apache.flink.runtime.checkpoint.CheckpointMetricsBuilder checkpointMetrics) throws IOException- Specified by:
triggerCheckpointOnBarrierin interfaceorg.apache.flink.runtime.jobgraph.tasks.CheckpointableTask- Overrides:
triggerCheckpointOnBarrierin classStreamTask<OUT,MultipleInputStreamOperator<OUT>>- Throws:
IOException
-
abortCheckpointOnBarrier
public void abortCheckpointOnBarrier(long checkpointId, org.apache.flink.runtime.checkpoint.CheckpointException cause) throws IOException- Specified by:
abortCheckpointOnBarrierin interfaceorg.apache.flink.runtime.jobgraph.tasks.CheckpointableTask- Overrides:
abortCheckpointOnBarrierin classStreamTask<OUT,MultipleInputStreamOperator<OUT>>- Throws:
IOException
-
advanceToEndOfEventTime
protected void advanceToEndOfEventTime() throws ExceptionDescription copied from class:StreamTaskEmits theMAX_WATERMARKso that all registered timers are fired.This is used by the source task when the job is
TERMINATED. In the case, we want all the timers registered throughout the pipeline to fire and the related state (e.g. windows) to be flushed.For tasks other than the source task, this method does nothing.
- Overrides:
advanceToEndOfEventTimein classStreamTask<OUT,MultipleInputStreamOperator<OUT>>- Throws:
Exception
-
-