Class 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 of StreamTask for executing the SourceOperator.
    • Constructor Detail

      • SourceOperatorStreamTask

        public SourceOperatorStreamTask​(org.apache.flink.runtime.execution.Environment env)
                                 throws Exception
        Throws:
        Exception
    • Method Detail

      • triggerCheckpointAsync

        public CompletableFuture<Boolean> triggerCheckpointAsync​(org.apache.flink.runtime.checkpoint.CheckpointMetaData checkpointMetaData,
                                                                 org.apache.flink.runtime.checkpoint.CheckpointOptions checkpointOptions)
        Specified by:
        triggerCheckpointAsync in interface org.apache.flink.runtime.jobgraph.tasks.CheckpointableTask
        Overrides:
        triggerCheckpointAsync in class StreamTask<T,​SourceOperator<T,​?>>
      • advanceToEndOfEventTime

        protected void advanceToEndOfEventTime()
        Description copied from class: StreamTask
        Emits the MAX_WATERMARK so 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:
        advanceToEndOfEventTime in class StreamTask<T,​SourceOperator<T,​?>>
      • notifyCheckpointAbortAsync

        public Future<Void> notifyCheckpointAbortAsync​(long checkpointId,
                                                       long latestCompletedCheckpointId)
        Specified by:
        notifyCheckpointAbortAsync in interface org.apache.flink.runtime.jobgraph.tasks.CheckpointableTask
        Overrides:
        notifyCheckpointAbortAsync in class StreamTask<T,​SourceOperator<T,​?>>