@Internal public class InternalSourceReaderMetricGroup extends ProxyMetricGroup<org.apache.flink.metrics.MetricGroup> implements org.apache.flink.metrics.groups.SourceReaderMetricGroup
MetricGroup representing an Operator.| Modifier and Type | Field and Description |
|---|---|
static long |
UNDEFINED |
parentMetricGroup| Modifier and Type | Method and Description |
|---|---|
org.apache.flink.metrics.groups.OperatorIOMetricGroup |
getIOMetricGroup() |
org.apache.flink.metrics.Counter |
getNumRecordsInErrorsCounter() |
void |
idlingStarted() |
static InternalSourceReaderMetricGroup |
mock(org.apache.flink.metrics.MetricGroup metricGroup) |
void |
recordEmitted(long timestamp)
Called when a new record was emitted with the given timestamp.
|
void |
setPendingBytesGauge(org.apache.flink.metrics.Gauge<Long> pendingBytesGauge) |
void |
setPendingRecordsGauge(org.apache.flink.metrics.Gauge<Long> pendingRecordsGauge) |
void |
updateMaxDesiredWatermark(long currentMaxDesiredWatermark) |
void |
watermarkEmitted(long watermark)
Called when a watermark was emitted.
|
static InternalSourceReaderMetricGroup |
wrap(org.apache.flink.metrics.groups.OperatorMetricGroup operatorMetricGroup) |
addGroup, addGroup, addSpan, counter, counter, gauge, getAllVariables, getMetricIdentifier, getMetricIdentifier, getScopeComponents, histogram, meterpublic static final long UNDEFINED
public static InternalSourceReaderMetricGroup wrap(org.apache.flink.metrics.groups.OperatorMetricGroup operatorMetricGroup)
@VisibleForTesting public static InternalSourceReaderMetricGroup mock(org.apache.flink.metrics.MetricGroup metricGroup)
public org.apache.flink.metrics.Counter getNumRecordsInErrorsCounter()
getNumRecordsInErrorsCounter in interface org.apache.flink.metrics.groups.SourceReaderMetricGrouppublic void setPendingBytesGauge(org.apache.flink.metrics.Gauge<Long> pendingBytesGauge)
setPendingBytesGauge in interface org.apache.flink.metrics.groups.SourceReaderMetricGrouppublic void setPendingRecordsGauge(org.apache.flink.metrics.Gauge<Long> pendingRecordsGauge)
setPendingRecordsGauge in interface org.apache.flink.metrics.groups.SourceReaderMetricGrouppublic org.apache.flink.metrics.groups.OperatorIOMetricGroup getIOMetricGroup()
getIOMetricGroup in interface org.apache.flink.metrics.groups.OperatorMetricGrouppublic void recordEmitted(long timestamp)
TimestampAssigner.NO_TIMESTAMP should be indicated that the record did not have a timestamp.
Note this function should be called before the actual record is emitted such that chained processing does not influence the statistics.
public void idlingStarted()
public void watermarkEmitted(long watermark)
Note this function should be called before the actual watermark is emitted such that chained processing does not influence the statistics.
public void updateMaxDesiredWatermark(long currentMaxDesiredWatermark)
Copyright © 2014–2024 The Apache Software Foundation. All rights reserved.