Package io.debezium.pipeline.meters
Class StreamingMeter
java.lang.Object
io.debezium.pipeline.meters.StreamingMeter
- All Implemented Interfaces:
SchemaMetricsMXBean,StreamingMetricsMXBean,StreamingStatisticsMXBean
@ThreadSafe
public class StreamingMeter
extends Object
implements StreamingMetricsMXBean, StreamingStatisticsMXBean
Carries streaming metrics.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final CapturedTablesSupplierprivate final LagBehindSourceMeasurementprivate final AtomicReference<String> private final MeasurementCollector<LagBehindSourceEvent> private final EventMetadataProviderprivate final AtomicLongprivate final AtomicLongprivate final AtomicReference<Map<String, String>> -
Constructor Summary
ConstructorsConstructorDescriptionStreamingMeter(CommonConnectorConfig config, CapturedTablesSupplier capturedTablesSupplier, EventMetadataProvider metadataProvider) -
Method Summary
-
Field Details
-
numberOfCommittedTransactions
-
sourceEventPosition
-
lastTransactionId
-
numberOfUnchangedEventsSkipped
-
measurementCollector
-
lagBehindSourceMeasurement
-
capturedTablesSupplier
-
metadataProvider
-
-
Constructor Details
-
StreamingMeter
public StreamingMeter(CommonConnectorConfig config, CapturedTablesSupplier capturedTablesSupplier, EventMetadataProvider metadataProvider)
-
-
Method Details
-
getCapturedTables
- Specified by:
getCapturedTablesin interfaceSchemaMetricsMXBean
-
getSourceEventPosition
- Specified by:
getSourceEventPositionin interfaceStreamingMetricsMXBean
-
getMilliSecondsBehindSource
public long getMilliSecondsBehindSource()- Specified by:
getMilliSecondsBehindSourcein interfaceStreamingMetricsMXBean
-
getMilliSecondsBehindSourceMinValue
- Specified by:
getMilliSecondsBehindSourceMinValuein interfaceStreamingStatisticsMXBean
-
getMilliSecondsBehindSourceMaxValue
- Specified by:
getMilliSecondsBehindSourceMaxValuein interfaceStreamingStatisticsMXBean
-
getMilliSecondsBehindSourceAverageValue
- Specified by:
getMilliSecondsBehindSourceAverageValuein interfaceStreamingStatisticsMXBean
-
getMilliSecondsBehindSourceP50
- Specified by:
getMilliSecondsBehindSourceP50in interfaceStreamingStatisticsMXBean
-
getMilliSecondsBehindSourceP95
- Specified by:
getMilliSecondsBehindSourceP95in interfaceStreamingStatisticsMXBean
-
getMilliSecondsBehindSourceP99
- Specified by:
getMilliSecondsBehindSourceP99in interfaceStreamingStatisticsMXBean
-
getNumberOfCommittedTransactions
public long getNumberOfCommittedTransactions()- Specified by:
getNumberOfCommittedTransactionsin interfaceStreamingMetricsMXBean
-
getLastTransactionId
- Specified by:
getLastTransactionIdin interfaceStreamingMetricsMXBean
-
getNumberOfUnchangedEventsSkipped
public long getNumberOfUnchangedEventsSkipped()- Specified by:
getNumberOfUnchangedEventsSkippedin interfaceStreamingMetricsMXBean
-
resetLagBehindSource
public void resetLagBehindSource()- Specified by:
resetLagBehindSourcein interfaceStreamingMetricsMXBean
-
enableUnchangedEventsMetric
public void enableUnchangedEventsMetric() -
onUnchangedEventSkipped
public void onUnchangedEventSkipped() -
onEvent
public void onEvent(io.debezium.spi.schema.DataCollectionId source, OffsetContext offset, Object key, org.apache.kafka.connect.data.Struct value) -
start
public void start() -
stop
public void stop() -
reset
public void reset()
-