@Internal public class FinishedOperatorChain<OUT,OP extends StreamOperator<OUT>> extends OperatorChain<OUT,OP>
OperatorChain that is used for restoring tasks that are TaskStateManager.isTaskDeployedAsFinished().OperatorChain.ChainedSourcechainedSources, closer, finishedOnRestoreInput, firstOperatorWrapper, isClosed, mainOperatorOutput, mainOperatorWrapper, numOperators, operatorEventDispatcher, streamOutputs, tailOperatorWrapper| Constructor and Description |
|---|
FinishedOperatorChain(StreamTask<OUT,OP> containingTask,
org.apache.flink.runtime.io.network.api.writer.RecordWriterDelegate<org.apache.flink.runtime.plugable.SerializationDelegate<StreamRecord<OUT>>> recordWriterDelegate) |
| Modifier and Type | Method and Description |
|---|---|
void |
dispatchOperatorEvent(org.apache.flink.runtime.jobgraph.OperatorID operator,
org.apache.flink.util.SerializedValue<org.apache.flink.runtime.operators.coordination.OperatorEvent> event) |
void |
endInput(int inputId)
Ends the main operator input specified by
inputId). |
void |
finishOperators(StreamTaskActionExecutor actionExecutor,
org.apache.flink.runtime.io.network.api.StopMode stopMode)
Closes all operators in a chain effect way.
|
WatermarkGaugeExposingOutput<StreamRecord<OUT>> |
getMainOperatorOutput() |
void |
initializeStateAndOpenOperators(StreamTaskStateInitializer streamTaskStateInitializer)
Initialize state and open all operators in the chain from tail to heads, contrary to
StreamOperator.close() which happens heads to tail (see OperatorChain.finishOperators(StreamTaskActionExecutor, StopMode)). |
boolean |
isClosed() |
boolean |
isTaskDeployedAsFinished() |
void |
notifyCheckpointAborted(long checkpointId) |
void |
notifyCheckpointComplete(long checkpointId) |
void |
notifyCheckpointSubsumed(long checkpointId) |
void |
prepareSnapshotPreBarrier(long checkpointId) |
void |
snapshotState(Map<org.apache.flink.runtime.jobgraph.OperatorID,OperatorSnapshotFutures> operatorSnapshotsInProgress,
org.apache.flink.runtime.checkpoint.CheckpointMetaData checkpointMetaData,
org.apache.flink.runtime.checkpoint.CheckpointOptions checkpointOptions,
java.util.function.Supplier<Boolean> isRunning,
org.apache.flink.runtime.checkpoint.channel.ChannelStateWriter.ChannelStateWriteResult channelStateWriteResult,
org.apache.flink.runtime.state.CheckpointStreamFactory storage) |
abortCheckpoint, alignedBarrierTimeout, broadcastEvent, broadcastEvent, close, closeAllOperators, flushOutputs, getAllOperators, getAllOperators, getChainedSource, getChainedSourceOutputs, getFinishedOnRestoreInputOrDefault, getMainOperator, getNumberOfOperators, getOperatorEventDispatcher, getSourceTaskInput, getSourceTaskInputs, getStreamOutputs, getTailOperator, sendAcknowledgeCheckpointEvent, snapshotChannelStatespublic FinishedOperatorChain(StreamTask<OUT,OP> containingTask, org.apache.flink.runtime.io.network.api.writer.RecordWriterDelegate<org.apache.flink.runtime.plugable.SerializationDelegate<StreamRecord<OUT>>> recordWriterDelegate)
public boolean isTaskDeployedAsFinished()
isTaskDeployedAsFinished in class OperatorChain<OUT,OP extends StreamOperator<OUT>>public WatermarkGaugeExposingOutput<StreamRecord<OUT>> getMainOperatorOutput()
getMainOperatorOutput in class OperatorChain<OUT,OP extends StreamOperator<OUT>>public void dispatchOperatorEvent(org.apache.flink.runtime.jobgraph.OperatorID operator,
org.apache.flink.util.SerializedValue<org.apache.flink.runtime.operators.coordination.OperatorEvent> event)
dispatchOperatorEvent in class OperatorChain<OUT,OP extends StreamOperator<OUT>>public void prepareSnapshotPreBarrier(long checkpointId)
prepareSnapshotPreBarrier in class OperatorChain<OUT,OP extends StreamOperator<OUT>>public void endInput(int inputId)
throws Exception
OperatorChaininputId).endInput in interface BoundedMultiInputendInput in class OperatorChain<OUT,OP extends StreamOperator<OUT>>inputId - the input ID starts from 1 which indicates the first input.Exceptionpublic void initializeStateAndOpenOperators(StreamTaskStateInitializer streamTaskStateInitializer)
OperatorChainStreamOperator.close() which happens heads to tail (see OperatorChain.finishOperators(StreamTaskActionExecutor, StopMode)).initializeStateAndOpenOperators in class OperatorChain<OUT,OP extends StreamOperator<OUT>>public void finishOperators(StreamTaskActionExecutor actionExecutor, org.apache.flink.runtime.io.network.api.StopMode stopMode) throws Exception
OperatorChainStreamOperator.open() which happens tail to
heads (see OperatorChain.initializeStateAndOpenOperators(StreamTaskStateInitializer)).finishOperators in class OperatorChain<OUT,OP extends StreamOperator<OUT>>Exceptionpublic void notifyCheckpointComplete(long checkpointId)
throws Exception
notifyCheckpointComplete in class OperatorChain<OUT,OP extends StreamOperator<OUT>>Exceptionpublic void notifyCheckpointAborted(long checkpointId)
throws Exception
notifyCheckpointAborted in class OperatorChain<OUT,OP extends StreamOperator<OUT>>Exceptionpublic void notifyCheckpointSubsumed(long checkpointId)
throws Exception
notifyCheckpointSubsumed in class OperatorChain<OUT,OP extends StreamOperator<OUT>>Exceptionpublic boolean isClosed()
isClosed in class OperatorChain<OUT,OP extends StreamOperator<OUT>>public void snapshotState(Map<org.apache.flink.runtime.jobgraph.OperatorID,OperatorSnapshotFutures> operatorSnapshotsInProgress, org.apache.flink.runtime.checkpoint.CheckpointMetaData checkpointMetaData, org.apache.flink.runtime.checkpoint.CheckpointOptions checkpointOptions, java.util.function.Supplier<Boolean> isRunning, org.apache.flink.runtime.checkpoint.channel.ChannelStateWriter.ChannelStateWriteResult channelStateWriteResult, org.apache.flink.runtime.state.CheckpointStreamFactory storage) throws Exception
snapshotState in class OperatorChain<OUT,OP extends StreamOperator<OUT>>ExceptionCopyright © 2014–2024 The Apache Software Foundation. All rights reserved.