Class SourceOperatorStreamTask<T>
- java.lang.Object
-
- org.apache.flink.streaming.runtime.tasks.StreamTask<T,SourceOperator<T,?>>
-
- org.apache.flink.streaming.runtime.tasks.SourceOperatorStreamTask<T>
-
- 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 SourceOperatorStreamTask<T> extends StreamTask<T,SourceOperator<T,?>>
A subclass ofStreamTaskfor executing theSourceOperator.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classSourceOperatorStreamTask.AsyncDataOutputToOutput<T>Implementation ofPushingAsyncDataInput.DataOutputthat wraps a specificOutput.-
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 SourceOperatorStreamTask(org.apache.flink.runtime.execution.Environment env)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidadvanceToEndOfEventTime()Emits theMAX_WATERMARKso that all registered timers are fired.protected voiddeclineCheckpoint(long checkpointId)voidinit()Future<Void>notifyCheckpointAbortAsync(long checkpointId, long latestCompletedCheckpointId)Future<Void>notifyCheckpointSubsumedAsync(long checkpointId)CompletableFuture<Boolean>triggerCheckpointAsync(org.apache.flink.runtime.checkpoint.CheckpointMetaData checkpointMetaData, org.apache.flink.runtime.checkpoint.CheckpointOptions checkpointOptions)-
Methods inherited from class org.apache.flink.streaming.runtime.tasks.StreamTask
abortCheckpointOnBarrier, afterInvoke, cancel, cancelTask, cleanUp, cleanUpInternal, createRecordWriterDelegate, createStreamTaskStateInitializer, dispatchOperatorEvent, endData, finalize, getAsyncCheckpointStartDelayNanos, getAsyncOperationsThreadPool, getCancelables, getCanEmitBatchOfRecords, getCheckpointBarrierHandler, getCheckpointStorage, getCompletionFuture, getConfiguration, getEnvironment, getMailboxExecutorFactory, getName, getProcessingTimeServiceFactory, handleAsyncException, hasMail, invoke, isCanceled, isFailing, isMailboxLoopRunning, isRunning, isUsingNonBlockingInput, maybeInterruptOnCancel, notifyCheckpointCompleteAsync, notifyEndOfData, processInput, restore, runMailboxLoop, runMailboxStep, runSingleMailboxLoop, setSynchronousSavepoint, setupNumRecordsInCounter, toString, triggerCheckpointOnBarrier
-
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<T,SourceOperator<T,?>>- Throws:
Exception
-
triggerCheckpointAsync
public CompletableFuture<Boolean> triggerCheckpointAsync(org.apache.flink.runtime.checkpoint.CheckpointMetaData checkpointMetaData, org.apache.flink.runtime.checkpoint.CheckpointOptions checkpointOptions)
- Specified by:
triggerCheckpointAsyncin interfaceorg.apache.flink.runtime.jobgraph.tasks.CheckpointableTask- Overrides:
triggerCheckpointAsyncin classStreamTask<T,SourceOperator<T,?>>
-
advanceToEndOfEventTime
protected void advanceToEndOfEventTime()
Description 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<T,SourceOperator<T,?>>
-
declineCheckpoint
protected void declineCheckpoint(long checkpointId)
- Overrides:
declineCheckpointin classStreamTask<T,SourceOperator<T,?>>
-
notifyCheckpointAbortAsync
public Future<Void> notifyCheckpointAbortAsync(long checkpointId, long latestCompletedCheckpointId)
- Specified by:
notifyCheckpointAbortAsyncin interfaceorg.apache.flink.runtime.jobgraph.tasks.CheckpointableTask- Overrides:
notifyCheckpointAbortAsyncin classStreamTask<T,SourceOperator<T,?>>
-
notifyCheckpointSubsumedAsync
public Future<Void> notifyCheckpointSubsumedAsync(long checkpointId)
- Specified by:
notifyCheckpointSubsumedAsyncin interfaceorg.apache.flink.runtime.jobgraph.tasks.CheckpointableTask- Overrides:
notifyCheckpointSubsumedAsyncin classStreamTask<T,SourceOperator<T,?>>
-
-