@Internal public class SourceOperatorStreamTask<T> extends StreamTask<T,SourceOperator<T,?>>
StreamTask for executing the SourceOperator.configuration, headOperator, inputProcessor, LOG, mailboxProcessor, operatorChain, stateBackend, timerService, TRIGGER_THREAD_GROUP| 构造器和说明 |
|---|
SourceOperatorStreamTask(org.apache.flink.runtime.execution.Environment env) |
| 限定符和类型 | 方法和说明 |
|---|---|
protected void |
advanceToEndOfEventTime()
Emits the
MAX_WATERMARK so that all registered timers are fired. |
protected void |
afterInvoke() |
protected CompletableFuture<Void> |
getCompletionFuture() |
void |
init() |
Future<Boolean> |
triggerCheckpointAsync(org.apache.flink.runtime.checkpoint.CheckpointMetaData checkpointMetaData,
org.apache.flink.runtime.checkpoint.CheckpointOptions checkpointOptions) |
abortCheckpointOnBarrier, beforeInvoke, cancel, cancelTask, cleanup, cleanUpInvoke, createRecordWriterDelegate, createStreamTaskStateInitializer, declineCheckpoint, dispatchOperatorEvent, executeInTaskThread, finalize, finishTask, getAsyncCheckpointStartDelayNanos, getAsyncOperationsThreadPool, getCancelables, getCheckpointStorage, getConfiguration, getMailboxExecutorFactory, getName, getProcessingTimeServiceFactory, getStreamStatusMaintainer, handleAsyncException, invoke, isCanceled, isFailing, isMailboxLoopRunning, isRunning, notifyCheckpointAbortAsync, notifyCheckpointCompleteAsync, processInput, runMailboxStep, setupNumRecordsInCounter, toString, triggerCheckpointOnBarrierprotected CompletableFuture<Void> getCompletionFuture()
getCompletionFuture 在类中 StreamTask<T,SourceOperator<T,?>>public void init()
throws Exception
init 在类中 StreamTask<T,SourceOperator<T,?>>Exceptionpublic Future<Boolean> triggerCheckpointAsync(org.apache.flink.runtime.checkpoint.CheckpointMetaData checkpointMetaData, org.apache.flink.runtime.checkpoint.CheckpointOptions checkpointOptions)
triggerCheckpointAsync 在类中 StreamTask<T,SourceOperator<T,?>>protected void advanceToEndOfEventTime()
StreamTaskMAX_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.
advanceToEndOfEventTime 在类中 StreamTask<T,SourceOperator<T,?>>protected void afterInvoke()
throws Exception
afterInvoke 在类中 StreamTask<T,SourceOperator<T,?>>ExceptionCopyright © 2014–2021 The Apache Software Foundation. All rights reserved.