Class MongoDbSnapshotChangeEventSourceMetrics
- java.lang.Object
-
- io.debezium.metrics.Metrics
-
- io.debezium.pipeline.metrics.PipelineMetrics<P>
-
- io.debezium.pipeline.metrics.DefaultSnapshotChangeEventSourceMetrics<MongoDbPartition>
-
- io.debezium.connector.mongodb.metrics.MongoDbSnapshotChangeEventSourceMetrics
-
- All Implemented Interfaces:
MongoDbSnapshotChangeEventSourceMetricsMBean,ChangeEventSourceMetrics<MongoDbPartition>,ChangeEventSourceMetricsMXBean,SnapshotChangeEventSourceMetrics<MongoDbPartition>,SnapshotChangeEventSourceMetricsMXBean,CommonEventMetricsMXBean,QueueMetricsMXBean,SchemaMetricsMXBean,SnapshotMetricsMXBean,DataChangeEventListener<MongoDbPartition>,SnapshotProgressListener<MongoDbPartition>
@ThreadSafe public class MongoDbSnapshotChangeEventSourceMetrics extends DefaultSnapshotChangeEventSourceMetrics<MongoDbPartition> implements MongoDbSnapshotChangeEventSourceMetricsMBean
- Author:
- Chris Cranford
-
-
Field Summary
Fields Modifier and Type Field Description private AtomicLongnumberOfDisconnects-
Fields inherited from class io.debezium.pipeline.metrics.PipelineMetrics
metadataProvider, taskContext
-
-
Constructor Summary
Constructors Constructor Description MongoDbSnapshotChangeEventSourceMetrics(T taskContext, ChangeEventQueueMetrics changeEventQueueMetrics, EventMetadataProvider metadataProvider)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description longgetNumberOfDisconnects()voidonConnectorEvent(MongoDbPartition partition, ConnectorEvent event)voidreset()-
Methods inherited from class io.debezium.pipeline.metrics.DefaultSnapshotChangeEventSourceMetrics
currentChunk, currentChunk, dataCollectionSnapshotCompleted, getCapturedTables, getChunkFrom, getChunkId, getChunkTo, getMonitoredTables, getRemainingTableCount, getRowsScanned, getSnapshotAborted, getSnapshotCompleted, getSnapshotDurationInSeconds, getSnapshotRunning, getTableFrom, getTableTo, getTotalTableCount, monitoredDataCollectionsDetermined, rowsScanned, snapshotAborted, snapshotCompleted, snapshotStarted
-
Methods inherited from class io.debezium.pipeline.metrics.PipelineMetrics
getCurrentQueueSizeInBytes, getLastEvent, getMaxQueueSizeInBytes, getMilliSecondsSinceLastEvent, getNumberOfErroneousEvents, getNumberOfEventsFiltered, getQueueRemainingCapacity, getQueueTotalCapacity, getTotalNumberOfCreateEventsSeen, getTotalNumberOfDeleteEventsSeen, getTotalNumberOfEventsSeen, getTotalNumberOfUpdateEventsSeen, onErroneousEvent, onErroneousEvent, onEvent, onFilteredEvent, onFilteredEvent
-
Methods inherited from class io.debezium.metrics.Metrics
metricName, metricName, register, unregister
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface io.debezium.pipeline.metrics.ChangeEventSourceMetrics
register, unregister
-
Methods inherited from interface io.debezium.pipeline.metrics.ChangeEventSourceMetricsMXBean
getMonitoredTables
-
Methods inherited from interface io.debezium.pipeline.metrics.traits.CommonEventMetricsMXBean
getLastEvent, getMilliSecondsSinceLastEvent, getNumberOfErroneousEvents, getNumberOfEventsFiltered, getTotalNumberOfCreateEventsSeen, getTotalNumberOfDeleteEventsSeen, getTotalNumberOfEventsSeen, getTotalNumberOfUpdateEventsSeen
-
Methods inherited from interface io.debezium.pipeline.source.spi.DataChangeEventListener
onErroneousEvent, onErroneousEvent, onEvent, onFilteredEvent, onFilteredEvent
-
Methods inherited from interface io.debezium.pipeline.metrics.traits.QueueMetricsMXBean
getCurrentQueueSizeInBytes, getMaxQueueSizeInBytes, getQueueRemainingCapacity, getQueueTotalCapacity
-
Methods inherited from interface io.debezium.pipeline.metrics.traits.SchemaMetricsMXBean
getCapturedTables
-
Methods inherited from interface io.debezium.pipeline.metrics.traits.SnapshotMetricsMXBean
getChunkFrom, getChunkId, getChunkTo, getRemainingTableCount, getRowsScanned, getSnapshotAborted, getSnapshotCompleted, getSnapshotDurationInSeconds, getSnapshotRunning, getTableFrom, getTableTo, getTotalTableCount
-
-
-
-
Field Detail
-
numberOfDisconnects
private AtomicLong numberOfDisconnects
-
-
Constructor Detail
-
MongoDbSnapshotChangeEventSourceMetrics
public MongoDbSnapshotChangeEventSourceMetrics(T taskContext, ChangeEventQueueMetrics changeEventQueueMetrics, EventMetadataProvider metadataProvider)
-
-
Method Detail
-
getNumberOfDisconnects
public long getNumberOfDisconnects()
- Specified by:
getNumberOfDisconnectsin interfaceMongoDbSnapshotChangeEventSourceMetricsMBean
-
onConnectorEvent
public void onConnectorEvent(MongoDbPartition partition, ConnectorEvent event)
- Specified by:
onConnectorEventin interfaceDataChangeEventListener<MongoDbPartition>- Overrides:
onConnectorEventin classPipelineMetrics<MongoDbPartition>
-
reset
public void reset()
- Specified by:
resetin interfaceChangeEventSourceMetricsMXBean- Overrides:
resetin classDefaultSnapshotChangeEventSourceMetrics<MongoDbPartition>
-
-