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 AtomicBoolean
holdingGlobalLock
private MySqlSchema
schema
-
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()
boolean
getHoldingGlobalLock()
String[]
getMonitoredTables()
long
getTotalNumberOfEventsSeen()
void
globalLockAcquired()
void
globalLockReleased()
-
Methods inherited from class io.debezium.pipeline.metrics.SnapshotChangeEventSourceMetrics
currentChunk, dataCollectionSnapshotCompleted, getChunkFrom, getChunkId, getChunkTo, getRemainingTableCount, getRowsScanned, getSnapshotAborted, getSnapshotCompleted, getSnapshotDurationInSeconds, getSnapshotRunning, 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, 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:
getHoldingGlobalLock
in interfaceSnapshotReaderMetricsMXBean
-
globalLockAcquired
public void globalLockAcquired()
-
globalLockReleased
public void globalLockReleased()
-
getMonitoredTables
public String[] getMonitoredTables()
- Specified by:
getMonitoredTables
in interfaceChangeEventSourceMetricsMXBean
- Overrides:
getMonitoredTables
in classSnapshotChangeEventSourceMetrics
-
getCapturedTables
public String[] getCapturedTables()
- Specified by:
getCapturedTables
in interfaceChangeEventSourceMetricsMXBean
- Overrides:
getCapturedTables
in classSnapshotChangeEventSourceMetrics
-
getTotalNumberOfEventsSeen
public long getTotalNumberOfEventsSeen()
- Specified by:
getTotalNumberOfEventsSeen
in interfaceChangeEventSourceMetricsMXBean
- Overrides:
getTotalNumberOfEventsSeen
in classPipelineMetrics
-
-