Class InternalSourceReaderMetricGroup
java.lang.Object
org.apache.flink.runtime.metrics.groups.ProxyMetricGroup<org.apache.flink.metrics.MetricGroup>
org.apache.flink.runtime.metrics.groups.InternalSourceReaderMetricGroup
- All Implemented Interfaces:
org.apache.flink.metrics.groups.OperatorMetricGroup,org.apache.flink.metrics.groups.SourceReaderMetricGroup,org.apache.flink.metrics.MetricGroup
@Internal
public class InternalSourceReaderMetricGroup
extends ProxyMetricGroup<org.apache.flink.metrics.MetricGroup>
implements org.apache.flink.metrics.groups.SourceReaderMetricGroup
Special
MetricGroup representing an Operator.-
Field Summary
FieldsFields inherited from class org.apache.flink.runtime.metrics.groups.ProxyMetricGroup
parentMetricGroup -
Method Summary
Modifier and TypeMethodDescriptionorg.apache.flink.metrics.groups.OperatorIOMetricGrouporg.apache.flink.metrics.Countervoidmock(org.apache.flink.metrics.MetricGroup metricGroup) voidrecordEmitted(long timestamp) Called when a new record was emitted with the given timestamp.voidsetPendingBytesGauge(org.apache.flink.metrics.Gauge<Long> pendingBytesGauge) voidsetPendingRecordsGauge(org.apache.flink.metrics.Gauge<Long> pendingRecordsGauge) voidupdateMaxDesiredWatermark(long currentMaxDesiredWatermark) voidwatermarkEmitted(long watermark) Called when a watermark was emitted.wrap(org.apache.flink.metrics.groups.OperatorMetricGroup operatorMetricGroup) Methods inherited from class org.apache.flink.runtime.metrics.groups.ProxyMetricGroup
addGroup, addGroup, addSpan, counter, counter, gauge, getAllVariables, getMetricIdentifier, getMetricIdentifier, getScopeComponents, histogram, meterMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.apache.flink.metrics.MetricGroup
addGroup, addGroup, addGroup, addSpan, counter, counter, counter, counter, gauge, gauge, getAllVariables, getMetricIdentifier, getMetricIdentifier, getScopeComponents, histogram, histogram, meter, meter
-
Field Details
-
UNDEFINED
public static final long UNDEFINED- See Also:
-
-
Method Details
-
wrap
public static InternalSourceReaderMetricGroup wrap(org.apache.flink.metrics.groups.OperatorMetricGroup operatorMetricGroup) -
mock
@VisibleForTesting public static InternalSourceReaderMetricGroup mock(org.apache.flink.metrics.MetricGroup metricGroup) -
getNumRecordsInErrorsCounter
public org.apache.flink.metrics.Counter getNumRecordsInErrorsCounter()- Specified by:
getNumRecordsInErrorsCounterin interfaceorg.apache.flink.metrics.groups.SourceReaderMetricGroup
-
setPendingBytesGauge
- Specified by:
setPendingBytesGaugein interfaceorg.apache.flink.metrics.groups.SourceReaderMetricGroup
-
setPendingRecordsGauge
- Specified by:
setPendingRecordsGaugein interfaceorg.apache.flink.metrics.groups.SourceReaderMetricGroup
-
getIOMetricGroup
public org.apache.flink.metrics.groups.OperatorIOMetricGroup getIOMetricGroup()- Specified by:
getIOMetricGroupin interfaceorg.apache.flink.metrics.groups.OperatorMetricGroup
-
recordEmitted
public void recordEmitted(long timestamp) Called when a new record was emitted with the given timestamp.TimestampAssigner.NO_TIMESTAMPshould 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.
-
idlingStarted
public void idlingStarted() -
watermarkEmitted
public void watermarkEmitted(long watermark) Called when a watermark was emitted.Note this function should be called before the actual watermark is emitted such that chained processing does not influence the statistics.
-
updateMaxDesiredWatermark
public void updateMaxDesiredWatermark(long currentMaxDesiredWatermark)
-