Package io.debezium.connector.mysql
Class MySqlSnapshotChangeEventSourceMetrics
java.lang.Object
io.debezium.metrics.Metrics
io.debezium.pipeline.metrics.PipelineMetrics<P>
io.debezium.pipeline.metrics.DefaultSnapshotChangeEventSourceMetrics<MySqlPartition>
io.debezium.connector.mysql.MySqlSnapshotChangeEventSourceMetrics
- All Implemented Interfaces:
MySqlSnapshotChangeEventSourceMetricsMXBean
,ChangeEventSourceMetrics<MySqlPartition>
,ChangeEventSourceMetricsMXBean
,SnapshotChangeEventSourceMetrics<MySqlPartition>
,SnapshotChangeEventSourceMetricsMXBean
,CommonEventMetricsMXBean
,QueueMetricsMXBean
,SchemaMetricsMXBean
,SnapshotMetricsMXBean
,DataChangeEventListener<MySqlPartition>
,SnapshotProgressListener<MySqlPartition>
class MySqlSnapshotChangeEventSourceMetrics
extends DefaultSnapshotChangeEventSourceMetrics<MySqlPartition>
implements MySqlSnapshotChangeEventSourceMetricsMXBean
- Author:
- Randall Hauch
-
Field Summary
Fields inherited from class io.debezium.pipeline.metrics.PipelineMetrics
metadataProvider, taskContext
-
Constructor Summary
ConstructorDescriptionMySqlSnapshotChangeEventSourceMetrics
(MySqlTaskContext taskContext, ChangeEventQueueMetrics changeEventQueueMetrics, EventMetadataProvider eventMetadataProvider) -
Method Summary
Modifier and TypeMethodDescriptionboolean
long
void
void
Methods inherited from class io.debezium.pipeline.metrics.DefaultSnapshotChangeEventSourceMetrics
currentChunk, currentChunk, dataCollectionSnapshotCompleted, getCapturedTables, getChunkFrom, getChunkId, getChunkTo, getRemainingTableCount, getRowsScanned, getSnapshotAborted, getSnapshotCompleted, getSnapshotDurationInSeconds, getSnapshotPaused, getSnapshotPausedDurationInSeconds, getSnapshotRunning, getTableFrom, getTableTo, getTotalTableCount, monitoredDataCollectionsDetermined, reset, rowsScanned, snapshotAborted, snapshotCompleted, snapshotPaused, snapshotResumed, snapshotStarted
Methods inherited from class io.debezium.pipeline.metrics.PipelineMetrics
getCurrentQueueSizeInBytes, getLastEvent, getMaxQueueSizeInBytes, getMilliSecondsSinceLastEvent, getNumberOfErroneousEvents, getNumberOfEventsFiltered, getQueueRemainingCapacity, getQueueTotalCapacity, getTotalNumberOfCreateEventsSeen, getTotalNumberOfDeleteEventsSeen, getTotalNumberOfUpdateEventsSeen, onConnectorEvent, 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
reset
Methods inherited from interface io.debezium.pipeline.metrics.traits.CommonEventMetricsMXBean
getLastEvent, getMilliSecondsSinceLastEvent, getNumberOfErroneousEvents, getNumberOfEventsFiltered, getTotalNumberOfCreateEventsSeen, getTotalNumberOfDeleteEventsSeen, getTotalNumberOfUpdateEventsSeen
Methods inherited from interface io.debezium.pipeline.source.spi.DataChangeEventListener
onConnectorEvent, 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, getSnapshotPaused, getSnapshotPausedDurationInSeconds, getSnapshotRunning, getTableFrom, getTableTo, getTotalTableCount
-
Field Details
-
holdingGlobalLock
-
-
Constructor Details
-
MySqlSnapshotChangeEventSourceMetrics
MySqlSnapshotChangeEventSourceMetrics(MySqlTaskContext taskContext, ChangeEventQueueMetrics changeEventQueueMetrics, EventMetadataProvider eventMetadataProvider)
-
-
Method Details
-
getHoldingGlobalLock
public boolean getHoldingGlobalLock()- Specified by:
getHoldingGlobalLock
in interfaceMySqlSnapshotChangeEventSourceMetricsMXBean
-
globalLockAcquired
public void globalLockAcquired() -
globalLockReleased
public void globalLockReleased() -
getTotalNumberOfEventsSeen
public long getTotalNumberOfEventsSeen()- Specified by:
getTotalNumberOfEventsSeen
in interfaceCommonEventMetricsMXBean
- Overrides:
getTotalNumberOfEventsSeen
in classPipelineMetrics<MySqlPartition>
-