@Internal public class OneInputStreamTask<IN,OUT> extends StreamTask<OUT,OneInputStreamOperator<IN,OUT>>
StreamTask for executing a OneInputStreamOperator.StreamTask.AsyncCheckpointRunnableconfiguration, headOperator, operatorChain, stateBackend, timerService, TRIGGER_THREAD_GROUP| Constructor and Description |
|---|
OneInputStreamTask(org.apache.flink.runtime.execution.Environment env)
Constructor for initialization, possibly with initial state (recovery / savepoint / etc).
|
OneInputStreamTask(org.apache.flink.runtime.execution.Environment env,
ProcessingTimeService timeProvider)
Constructor for initialization, possibly with initial state (recovery / savepoint / etc).
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
cancelTask() |
protected void |
cleanup() |
void |
init() |
protected void |
run() |
abortCheckpointOnBarrier, cancel, createCheckpointExceptionHandlerFactory, createStreamRecordWriters, createStreamTaskStateInitializer, finalize, getAccumulatorMap, getAsyncOperationsThreadPool, getCancelables, getCheckpointLock, getCheckpointStorage, getConfiguration, getName, getProcessingTimeService, getStreamStatusMaintainer, handleAsyncException, invoke, isCanceled, isRunning, notifyCheckpointComplete, toString, triggerCheckpoint, triggerCheckpointOnBarrierpublic OneInputStreamTask(org.apache.flink.runtime.execution.Environment env)
env - The task environment for this task.@VisibleForTesting
public OneInputStreamTask(org.apache.flink.runtime.execution.Environment env,
@Nullable
ProcessingTimeService timeProvider)
This constructor accepts a special ProcessingTimeService. By default (and if
null is passes for the time provider) a DefaultTimerService
will be used.
env - The task environment for this task.timeProvider - Optionally, a specific time provider to use.public void init()
throws Exception
init in class StreamTask<OUT,OneInputStreamOperator<IN,OUT>>Exceptionprotected void run()
throws Exception
run in class StreamTask<OUT,OneInputStreamOperator<IN,OUT>>Exceptionprotected void cleanup()
throws Exception
cleanup in class StreamTask<OUT,OneInputStreamOperator<IN,OUT>>Exceptionprotected void cancelTask()
cancelTask in class StreamTask<OUT,OneInputStreamOperator<IN,OUT>>Copyright © 2014–2019 The Apache Software Foundation. All rights reserved.