public class LocalInputChannel extends InputChannel implements BufferAvailabilityListener
InputChannel.BufferAndAvailabilitychannelInfo, initialBackoff, inputGate, maxBackoff, numBuffersIn, numBytesIn, partitionId| 构造器和说明 |
|---|
LocalInputChannel(SingleInputGate inputGate,
int channelIndex,
ResultPartitionID partitionId,
ResultPartitionManager partitionManager,
TaskEventPublisher taskEventPublisher,
int initialBackoff,
int maxBackoff,
org.apache.flink.metrics.Counter numBytesIn,
org.apache.flink.metrics.Counter numBuffersIn,
ChannelStateWriter stateWriter) |
| 限定符和类型 | 方法和说明 |
|---|---|
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 |
notifyDataAvailable()
Called whenever there might be new data available.
|
protected void |
requestSubpartition(int subpartitionIndex)
Requests the queue with the specified index of the source intermediate result partition.
|
void |
resumeConsumption()
After sending a
CheckpointBarrier of
exactly-once mode, the upstream will be blocked and become unavailable. |
String |
toString() |
int |
unsynchronizedGetNumberOfQueuedBuffers() |
checkError, convertToPriorityEvent, getChannelIndex, getChannelInfo, getCurrentBackoff, getPartitionId, increaseBackoff, notifyBufferAvailable, notifyChannelNonEmpty, notifyPriorityEvent, setErrorclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitnotifyPriorityEventpublic LocalInputChannel(SingleInputGate inputGate, int channelIndex, ResultPartitionID partitionId, ResultPartitionManager partitionManager, TaskEventPublisher taskEventPublisher, int initialBackoff, int maxBackoff, org.apache.flink.metrics.Counter numBytesIn, org.apache.flink.metrics.Counter numBuffersIn, ChannelStateWriter stateWriter)
public void checkpointStarted(CheckpointBarrier barrier) throws CheckpointException
InputChannelcheckpointStarted 在类中 InputChannelCheckpointExceptionpublic void checkpointStopped(long checkpointId)
InputChannelcheckpointStopped 在类中 InputChannelprotected void requestSubpartition(int subpartitionIndex)
throws IOException
InputChannelThe queue index to request depends on which sub task the channel belongs to and is specified by the consumer of this channel.
IOExceptionpublic void notifyDataAvailable()
BufferAvailabilityListenerpublic 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 在类中 InputChannelIOExceptionpublic int unsynchronizedGetNumberOfQueuedBuffers()
Copyright © 2014–2022 The Apache Software Foundation. All rights reserved.