Class IndexedInputGate
- java.lang.Object
-
- org.apache.flink.runtime.io.network.partition.consumer.InputGate
-
- org.apache.flink.runtime.io.network.partition.consumer.IndexedInputGate
-
- All Implemented Interfaces:
AutoCloseable
,AvailabilityProvider
,ChannelStateHolder
,CheckpointableInput
,PullingAsyncDataInput<BufferOrEvent>
- Direct Known Subclasses:
InputGateWithMetrics
,SingleInputGate
public abstract class IndexedInputGate extends InputGate implements CheckpointableInput
AnInputGate
with a specific index.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.apache.flink.runtime.io.network.partition.consumer.InputGate
InputGate.InputWithData<INPUT,DATA>
-
Nested classes/interfaces inherited from interface org.apache.flink.runtime.io.AvailabilityProvider
AvailabilityProvider.AvailabilityHelper
-
Nested classes/interfaces inherited from interface org.apache.flink.runtime.io.PullingAsyncDataInput
PullingAsyncDataInput.EndOfDataStatus
-
-
Field Summary
-
Fields inherited from class org.apache.flink.runtime.io.network.partition.consumer.InputGate
availabilityHelper, priorityAvailabilityHelper
-
Fields inherited from interface org.apache.flink.runtime.io.AvailabilityProvider
AVAILABLE
-
-
Constructor Summary
Constructors Constructor Description IndexedInputGate()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description void
blockConsumption(InputChannelInfo channelInfo)
void
checkpointStarted(CheckpointBarrier barrier)
void
checkpointStopped(long cancelledCheckpointId)
void
convertToPriorityEvent(int channelIndex, int sequenceNumber)
abstract int
getGateIndex()
Returns the index of this input gate.int
getInputGateIndex()
abstract List<InputChannelInfo>
getUnfinishedChannels()
Returns the list of channels that have not received EndOfPartitionEvent.abstract void
triggerDebloating()
-
Methods inherited from class org.apache.flink.runtime.io.network.partition.consumer.InputGate
acknowledgeAllRecordsProcessed, finishReadRecoveredState, getAvailableFuture, getChannel, getChannelInfos, getNext, getNumberOfInputChannels, getPriorityEventAvailableFuture, getStateConsumedFuture, isFinished, pollNext, requestPartitions, resumeConsumption, sendTaskEvent, setChannelStateWriter, setup
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface java.lang.AutoCloseable
close
-
Methods inherited from interface org.apache.flink.runtime.io.AvailabilityProvider
isApproximatelyAvailable, isAvailable
-
Methods inherited from interface org.apache.flink.runtime.io.network.partition.consumer.CheckpointableInput
getChannelInfos, getNumberOfInputChannels, resumeConsumption
-
Methods inherited from interface org.apache.flink.runtime.io.PullingAsyncDataInput
hasReceivedEndOfData
-
-
-
-
Method Detail
-
getGateIndex
public abstract int getGateIndex()
Returns the index of this input gate. Only supported on
-
getUnfinishedChannels
public abstract List<InputChannelInfo> getUnfinishedChannels()
Returns the list of channels that have not received EndOfPartitionEvent.
-
checkpointStarted
public void checkpointStarted(CheckpointBarrier barrier) throws CheckpointException
- Specified by:
checkpointStarted
in interfaceCheckpointableInput
- Throws:
CheckpointException
-
checkpointStopped
public void checkpointStopped(long cancelledCheckpointId)
- Specified by:
checkpointStopped
in interfaceCheckpointableInput
-
getInputGateIndex
public int getInputGateIndex()
- Specified by:
getInputGateIndex
in interfaceCheckpointableInput
-
blockConsumption
public void blockConsumption(InputChannelInfo channelInfo)
- Specified by:
blockConsumption
in interfaceCheckpointableInput
-
convertToPriorityEvent
public void convertToPriorityEvent(int channelIndex, int sequenceNumber) throws IOException
- Specified by:
convertToPriorityEvent
in interfaceCheckpointableInput
- Throws:
IOException
-
triggerDebloating
public abstract void triggerDebloating()
-
-