@Internal public class OneInputStreamTask<IN,OUT> extends StreamTask<OUT,OneInputStreamOperator<IN,OUT>>
StreamTask
for executing a OneInputStreamOperator
.StreamTask.AsyncCheckpointRunnable
configuration, headOperator, operatorChain, stateBackend, timerService, TRIGGER_THREAD_GROUP
Constructor and Description |
---|
OneInputStreamTask(Environment env)
Constructor for initialization, possibly with initial state (recovery / savepoint / etc).
|
OneInputStreamTask(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, createRecordWriters, createStreamTaskStateInitializer, finalize, getAccumulatorMap, getAsyncOperationsThreadPool, getCancelables, getCheckpointLock, getCheckpointStorage, getConfiguration, getName, getProcessingTimeService, getStreamStatusMaintainer, handleAsyncException, invoke, isCanceled, isRunning, notifyCheckpointComplete, toString, triggerCheckpoint, triggerCheckpointOnBarrier
getCurrentNumberOfSubtasks, getEnvironment, getExecutionConfig, getIndexInSubtaskGroup, getJobConfiguration, getTaskConfiguration, getUserCodeClassLoader, setShouldInterruptOnCancel, shouldInterruptOnCancel
public OneInputStreamTask(Environment env)
env
- The task environment for this task.@VisibleForTesting public OneInputStreamTask(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>>
Exception
protected void run() throws Exception
run
in class StreamTask<OUT,OneInputStreamOperator<IN,OUT>>
Exception
protected void cleanup() throws Exception
cleanup
in class StreamTask<OUT,OneInputStreamOperator<IN,OUT>>
Exception
protected void cancelTask()
cancelTask
in class StreamTask<OUT,OneInputStreamOperator<IN,OUT>>
Copyright © 2014–2020 The Apache Software Foundation. All rights reserved.