@Internal public class InternalSourceReaderMetricGroup extends ProxyMetricGroup<org.apache.flink.metrics.MetricGroup> implements org.apache.flink.metrics.groups.SourceReaderMetricGroup
MetricGroup representing an Operator.| 限定符和类型 | 字段和说明 |
|---|---|
static long |
UNDEFINED |
parentMetricGroup| 限定符和类型 | 方法和说明 |
|---|---|
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 |
watermarkEmitted(long watermark)
Called when a watermark was emitted.
|
static InternalSourceReaderMetricGroup |
wrap(org.apache.flink.metrics.groups.OperatorMetricGroup operatorMetricGroup) |
addGroup, addGroup, 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 在接口中 org.apache.flink.metrics.groups.SourceReaderMetricGrouppublic void setPendingBytesGauge(org.apache.flink.metrics.Gauge<Long> pendingBytesGauge)
setPendingBytesGauge 在接口中 org.apache.flink.metrics.groups.SourceReaderMetricGrouppublic void setPendingRecordsGauge(org.apache.flink.metrics.Gauge<Long> pendingRecordsGauge)
setPendingRecordsGauge 在接口中 org.apache.flink.metrics.groups.SourceReaderMetricGrouppublic org.apache.flink.metrics.groups.OperatorIOMetricGroup getIOMetricGroup()
getIOMetricGroup 在接口中 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.
Copyright © 2014–2022 The Apache Software Foundation. All rights reserved.