public abstract class RecoveredInputChannel extends InputChannel implements ChannelStateHolder
InputChannel.BufferAndAvailability| 限定符和类型 | 字段和说明 |
|---|---|
protected BufferManager |
bufferManager |
protected ChannelStateWriter |
channelStateWriter |
protected int |
networkBuffersPerChannel |
channelInfo, consumedSubpartitionIndex, initialBackoff, inputGate, maxBackoff, numBuffersIn, numBytesIn, partitionId| 限定符和类型 | 方法和说明 |
|---|---|
void |
acknowledgeAllRecordsProcessed()
When received
EndOfData from one channel, it need to acknowledge after this event get
processed. |
void |
checkpointStarted(CheckpointBarrier barrier)
Called by task thread when checkpointing is started (e.g., any input channel received
barrier).
|
void |
checkpointStopped(long checkpointId)
Called by task thread on cancel/complete to clean-up temporary data.
|
void |
finishReadRecoveredState() |
protected int |
getNumberOfQueuedBuffers() |
void |
onRecoveredStateBuffer(Buffer buffer) |
Buffer |
requestBufferBlocking() |
void |
resumeConsumption()
After sending a
CheckpointBarrier of
exactly-once mode, the upstream will be blocked and become unavailable. |
void |
setChannelStateWriter(ChannelStateWriter channelStateWriter)
Injects the
ChannelStateWriter. |
InputChannel |
toInputChannel() |
protected abstract InputChannel |
toInputChannelInternal() |
checkError, convertToPriorityEvent, getChannelIndex, getChannelInfo, getConsumedSubpartitionIndex, getCurrentBackoff, getPartitionId, increaseBackoff, notifyBufferAvailable, notifyChannelNonEmpty, notifyPriorityEvent, setError, unsynchronizedGetNumberOfQueuedBuffers, unsynchronizedGetSizeOfQueuedBuffersprotected final BufferManager bufferManager
protected ChannelStateWriter channelStateWriter
protected final int networkBuffersPerChannel
public void setChannelStateWriter(ChannelStateWriter channelStateWriter)
ChannelStateHolderChannelStateWriter. Must only be called once.setChannelStateWriter 在接口中 ChannelStateHolderpublic final InputChannel toInputChannel() throws IOException
IOExceptionpublic void checkpointStopped(long checkpointId)
InputChannelcheckpointStopped 在类中 InputChannelprotected abstract InputChannel toInputChannelInternal() throws IOException
IOExceptionpublic void onRecoveredStateBuffer(Buffer buffer)
public void finishReadRecoveredState()
throws IOException
IOExceptionpublic void resumeConsumption()
InputChannelCheckpointBarrier of
exactly-once mode, the upstream will be blocked and become unavailable. This method tries to
unblock the corresponding upstream and resume data consumption.resumeConsumption 在类中 InputChannelpublic void acknowledgeAllRecordsProcessed()
throws IOException
InputChannelEndOfData from one channel, it need to acknowledge after this event get
processed.acknowledgeAllRecordsProcessed 在类中 InputChannelIOException@VisibleForTesting protected int getNumberOfQueuedBuffers()
public Buffer requestBufferBlocking() throws InterruptedException, IOException
public void checkpointStarted(CheckpointBarrier barrier) throws CheckpointException
InputChannelcheckpointStarted 在类中 InputChannelCheckpointExceptionCopyright © 2014–2023 The Apache Software Foundation. All rights reserved.