Class StatusWatermarkValve.InputChannelStatus
- java.lang.Object
-
- org.apache.flink.streaming.runtime.watermarkstatus.StatusWatermarkValve.InputChannelStatus
-
- Enclosing class:
- StatusWatermarkValve
@VisibleForTesting protected static class StatusWatermarkValve.InputChannelStatus extends Object
AnInputChannelStatuskeeps track of an input channel's last watermark, stream status, and whether or not the channel's current watermark is aligned with the overall watermark output from the valve.There are 2 situations where a channel's watermark is not considered aligned:
- the current watermark status of the channel is idle
- the watermark status has resumed to be active, but the watermark of the channel hasn't caught up to the last output watermark from the valve yet.
NOTE: This class implements
HeapPriorityQueue.HeapPriorityQueueElementto be managed byStatusWatermarkValve.alignedChannelStatusesto help find minimum watermark.
-
-
Field Summary
Fields Modifier and Type Field Description protected booleanisWatermarkAlignedstatic intNOT_CONTAINEDThe index that indicates that aHeapPriorityQueue.HeapPriorityQueueElementobject is not contained in and managed by anyHeapPriorityQueue.protected longwatermarkprotected WatermarkStatuswatermarkStatus
-
Constructor Summary
Constructors Modifier Constructor Description protectedInputChannelStatus()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intgetInternalIndex()voidsetInternalIndex(int newIndex)
-
-
-
Field Detail
-
watermark
protected long watermark
-
watermarkStatus
protected WatermarkStatus watermarkStatus
-
isWatermarkAligned
protected boolean isWatermarkAligned
-
NOT_CONTAINED
public static final int NOT_CONTAINED
The index that indicates that aHeapPriorityQueue.HeapPriorityQueueElementobject is not contained in and managed by anyHeapPriorityQueue. We do not strictly enforce that internal indexes must be reset to this value when elements are removed from aHeapPriorityQueue.- See Also:
- Constant Field Values
-
-