@Internal public class InternalSourceReaderMetricGroup extends ProxyMetricGroup<MetricGroup> implements SourceReaderMetricGroup
MetricGroup
representing an Operator.Modifier and Type | Field and Description |
---|---|
static long |
UNDEFINED |
parentMetricGroup
Modifier and Type | Method and Description |
---|---|
OperatorIOMetricGroup |
getIOMetricGroup() |
Counter |
getNumRecordsInErrorsCounter()
The total number of record that failed to consume, process, or emit.
|
void |
idlingStarted() |
static InternalSourceReaderMetricGroup |
mock(MetricGroup metricGroup) |
void |
recordEmitted(long timestamp)
Called when a new record was emitted with the given timestamp.
|
void |
setPendingBytesGauge(Gauge<Long> pendingBytesGauge)
Sets an optional gauge for the number of bytes that have not been fetched by the source. e.g.
|
void |
setPendingRecordsGauge(Gauge<Long> pendingRecordsGauge)
Sets an optional gauge for the number of records that have not been fetched by the source.
|
void |
updateMaxDesiredWatermark(long currentMaxDesiredWatermark) |
void |
watermarkEmitted(long watermark)
Called when a watermark was emitted.
|
static InternalSourceReaderMetricGroup |
wrap(OperatorMetricGroup operatorMetricGroup) |
addGroup, addGroup, addSpan, counter, counter, gauge, getAllVariables, getMetricIdentifier, getMetricIdentifier, getScopeComponents, histogram, meter
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
addGroup, addGroup, addGroup, addSpan, counter, counter, counter, counter, gauge, gauge, getAllVariables, getMetricIdentifier, getMetricIdentifier, getScopeComponents, histogram, histogram, meter, meter
public static final long UNDEFINED
public static InternalSourceReaderMetricGroup wrap(OperatorMetricGroup operatorMetricGroup)
@VisibleForTesting public static InternalSourceReaderMetricGroup mock(MetricGroup metricGroup)
public Counter getNumRecordsInErrorsCounter()
SourceReaderMetricGroup
getNumRecordsInErrorsCounter
in interface SourceReaderMetricGroup
public void setPendingBytesGauge(Gauge<Long> pendingBytesGauge)
SourceReaderMetricGroup
Note that not every source can report this metric in an plausible and efficient way.
setPendingBytesGauge
in interface SourceReaderMetricGroup
public void setPendingRecordsGauge(Gauge<Long> pendingRecordsGauge)
SourceReaderMetricGroup
Note that not every source can report this metric in an plausible and efficient way.
setPendingRecordsGauge
in interface SourceReaderMetricGroup
public OperatorIOMetricGroup getIOMetricGroup()
getIOMetricGroup
in interface OperatorMetricGroup
public 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.