@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| 构造器和说明 |
|---|
FinishedOperatorChain(StreamTask<OUT,OP> containingTask,
org.apache.flink.runtime.io.network.api.writer.RecordWriterDelegate<org.apache.flink.runtime.plugable.SerializationDelegate<StreamRecord<OUT>>> recordWriterDelegate) |
| 限定符和类型 | 方法和说明 |
|---|---|
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 在类中 OperatorChain<OUT,OP extends StreamOperator<OUT>>public WatermarkGaugeExposingOutput<StreamRecord<OUT>> getMainOperatorOutput()
getMainOperatorOutput 在类中 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 在类中 OperatorChain<OUT,OP extends StreamOperator<OUT>>public void prepareSnapshotPreBarrier(long checkpointId)
prepareSnapshotPreBarrier 在类中 OperatorChain<OUT,OP extends StreamOperator<OUT>>public void endInput(int inputId)
throws Exception
OperatorChaininputId).endInput 在接口中 BoundedMultiInputendInput 在类中 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 在类中 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 在类中 OperatorChain<OUT,OP extends StreamOperator<OUT>>Exceptionpublic void notifyCheckpointComplete(long checkpointId)
throws Exception
notifyCheckpointComplete 在类中 OperatorChain<OUT,OP extends StreamOperator<OUT>>Exceptionpublic void notifyCheckpointAborted(long checkpointId)
throws Exception
notifyCheckpointAborted 在类中 OperatorChain<OUT,OP extends StreamOperator<OUT>>Exceptionpublic void notifyCheckpointSubsumed(long checkpointId)
throws Exception
notifyCheckpointSubsumed 在类中 OperatorChain<OUT,OP extends StreamOperator<OUT>>Exceptionpublic boolean isClosed()
isClosed 在类中 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 在类中 OperatorChain<OUT,OP extends StreamOperator<OUT>>ExceptionCopyright © 2014–2022 The Apache Software Foundation. All rights reserved.