Class SnapshotReaderMetrics
- java.lang.Object
-
- io.debezium.metrics.Metrics
-
- io.debezium.pipeline.metrics.PipelineMetrics
-
- io.debezium.pipeline.metrics.SnapshotChangeEventSourceMetrics
-
- io.debezium.connector.mysql.legacy.SnapshotReaderMetrics
-
- All Implemented Interfaces:
SnapshotReaderMetricsMXBean,ChangeEventSourceMetricsMXBean,SnapshotChangeEventSourceMetricsMXBean,DataChangeEventListener,SnapshotProgressListener
class SnapshotReaderMetrics extends SnapshotChangeEventSourceMetrics implements SnapshotReaderMetricsMXBean
- Author:
- Randall Hauch
-
-
Field Summary
Fields Modifier and Type Field Description private AtomicBooleanholdingGlobalLockprivate MySqlSchemaschema-
Fields inherited from class io.debezium.pipeline.metrics.PipelineMetrics
clock, lastEventTimestamp, metadataProvider, numberOfErroneousEvents, taskContext, totalNumberOfEventsSeen
-
Fields inherited from interface io.debezium.pipeline.source.spi.DataChangeEventListener
NO_OP
-
Fields inherited from interface io.debezium.pipeline.source.spi.SnapshotProgressListener
NO_OP
-
-
Constructor Summary
Constructors Constructor Description SnapshotReaderMetrics(MySqlTaskContext taskContext, MySqlSchema schema, ChangeEventQueueMetrics changeEventQueueMetrics)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String[]getCapturedTables()booleangetHoldingGlobalLock()String[]getMonitoredTables()longgetTotalNumberOfEventsSeen()voidglobalLockAcquired()voidglobalLockReleased()-
Methods inherited from class io.debezium.pipeline.metrics.SnapshotChangeEventSourceMetrics
currentChunk, currentChunk, dataCollectionSnapshotCompleted, getChunkFrom, getChunkId, getChunkTo, getRemainingTableCount, getRowsScanned, getSnapshotAborted, getSnapshotCompleted, getSnapshotDurationInSeconds, getSnapshotRunning, getTableFrom, getTableTo, getTotalTableCount, monitoredDataCollectionsDetermined, reset, rowsScanned, snapshotAborted, snapshotCompleted, snapshotStarted
-
Methods inherited from class io.debezium.pipeline.metrics.PipelineMetrics
getCurrentQueueSizeInBytes, getLastEvent, getMaxQueueSizeInBytes, getMilliSecondsSinceLastEvent, getNumberOfErroneousEvents, getNumberOfEventsFiltered, getQueueRemainingCapacity, getQueueTotalCapacity, onConnectorEvent, onErroneousEvent, onEvent, onFilteredEvent
-
Methods inherited from class io.debezium.metrics.Metrics
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.ChangeEventSourceMetricsMXBean
getCurrentQueueSizeInBytes, getLastEvent, getMaxQueueSizeInBytes, getMilliSecondsSinceLastEvent, getNumberOfErroneousEvents, getNumberOfEventsFiltered, getQueueRemainingCapacity, getQueueTotalCapacity, reset
-
Methods inherited from interface io.debezium.pipeline.metrics.SnapshotChangeEventSourceMetricsMXBean
getChunkFrom, getChunkId, getChunkTo, getRemainingTableCount, getRowsScanned, getSnapshotAborted, getSnapshotCompleted, getSnapshotDurationInSeconds, getSnapshotRunning, getTableFrom, getTableTo, getTotalTableCount
-
-
-
-
Field Detail
-
holdingGlobalLock
private final AtomicBoolean holdingGlobalLock
-
schema
private final MySqlSchema schema
-
-
Constructor Detail
-
SnapshotReaderMetrics
public SnapshotReaderMetrics(MySqlTaskContext taskContext, MySqlSchema schema, ChangeEventQueueMetrics changeEventQueueMetrics)
-
-
Method Detail
-
getHoldingGlobalLock
public boolean getHoldingGlobalLock()
- Specified by:
getHoldingGlobalLockin interfaceSnapshotReaderMetricsMXBean
-
globalLockAcquired
public void globalLockAcquired()
-
globalLockReleased
public void globalLockReleased()
-
getMonitoredTables
public String[] getMonitoredTables()
- Specified by:
getMonitoredTablesin interfaceChangeEventSourceMetricsMXBean- Overrides:
getMonitoredTablesin classSnapshotChangeEventSourceMetrics
-
getCapturedTables
public String[] getCapturedTables()
- Specified by:
getCapturedTablesin interfaceChangeEventSourceMetricsMXBean- Overrides:
getCapturedTablesin classSnapshotChangeEventSourceMetrics
-
getTotalNumberOfEventsSeen
public long getTotalNumberOfEventsSeen()
- Specified by:
getTotalNumberOfEventsSeenin interfaceChangeEventSourceMetricsMXBean- Overrides:
getTotalNumberOfEventsSeenin classPipelineMetrics
-
-