Class OneInputStreamTask<IN,OUT>
java.lang.Object
org.apache.flink.streaming.runtime.tasks.StreamTask<OUT,OneInputStreamOperator<IN,OUT>>
org.apache.flink.streaming.runtime.tasks.OneInputStreamTask<IN,OUT>
- All Implemented Interfaces:
CheckpointableTask,CoordinatedTask,TaskInvokable,AsyncExceptionHandler,ContainingTaskDetails
- Direct Known Subclasses:
StreamIterationHead,StreamIterationTail
@Internal
public class OneInputStreamTask<IN,OUT>
extends StreamTask<OUT,OneInputStreamOperator<IN,OUT>>
A
StreamTask for executing a OneInputStreamOperator.-
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
ConstructorsConstructorDescriptionConstructor for initialization, possibly with initial state (recovery / savepoint / etc).OneInputStreamTask(Environment env, TimerService timeProvider) Constructor for initialization, possibly with initial state (recovery / savepoint / etc). -
Method Summary
Modifier and TypeMethodDescriptionprotected Optional<CheckpointBarrierHandler>Acquires the optionalCheckpointBarrierHandlerassociated with this stream task.voidinit()Methods inherited from class org.apache.flink.streaming.runtime.tasks.StreamTask
abortCheckpointOnBarrier, advanceToEndOfEventTime, afterInvoke, cancel, cancelTask, cleanUp, cleanUpInternal, createRecordWriterDelegate, createStreamTaskStateInitializer, declineCheckpoint, dispatchOperatorEvent, endData, finalize, getAsyncCheckpointStartDelayNanos, getAsyncOperationsThreadPool, getCancelables, getCanEmitBatchOfRecords, getCheckpointStorage, getCompletionFuture, getConfiguration, getEnvironment, getMailboxExecutorFactory, getName, getProcessingTimeServiceFactory, handleAsyncException, hasMail, invoke, isCanceled, isFailing, isMailboxLoopRunning, isRunning, isUsingNonBlockingInput, maybeInterruptOnCancel, notifyCheckpointAbortAsync, notifyCheckpointCompleteAsync, notifyCheckpointSubsumedAsync, notifyEndOfData, processInput, restore, runMailboxLoop, runMailboxStep, runSingleMailboxLoop, setSynchronousSavepoint, setupNumRecordsInCounter, toString, triggerCheckpointAsync, triggerCheckpointOnBarrierMethods inherited from class java.lang.Object
clone, equals, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface org.apache.flink.streaming.runtime.tasks.ContainingTaskDetails
getExecutionConfig, getIndexInSubtaskGroup, getJobConfiguration, getUserCodeClassLoader
-
Constructor Details
-
OneInputStreamTask
Constructor for initialization, possibly with initial state (recovery / savepoint / etc).- Parameters:
env- The task environment for this task.- Throws:
Exception
-
OneInputStreamTask
@VisibleForTesting public OneInputStreamTask(Environment env, @Nullable TimerService timeProvider) throws Exception Constructor for initialization, possibly with initial state (recovery / savepoint / etc).This constructor accepts a special
TimerService. By default (and if null is passes for the time provider) aDefaultTimerServicewill be used.- Parameters:
env- The task environment for this task.timeProvider- Optionally, a specific time provider to use.- Throws:
Exception
-
-
Method Details
-
init
- Specified by:
initin classStreamTask<OUT,OneInputStreamOperator<IN, OUT>> - Throws:
Exception
-
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,OneInputStreamOperator<IN, OUT>>
-