Class BinlogSnapshotChangeEventSourceMetrics<P extends BinlogPartition>
java.lang.Object
io.debezium.metrics.Metrics
io.debezium.pipeline.metrics.PipelineMetrics<P>
io.debezium.pipeline.metrics.DefaultSnapshotChangeEventSourceMetrics<P>
io.debezium.connector.binlog.metrics.BinlogSnapshotChangeEventSourceMetrics<P>
- All Implemented Interfaces:
BinlogSnapshotChangeEventSourceMetricsMXBean,ChangeEventSourceMetrics<P>,ChangeEventSourceMetricsMXBean,SnapshotChangeEventSourceMetrics<P>,SnapshotChangeEventSourceMetricsMXBean,CommonEventMetricsMXBean,QueueMetricsMXBean,SchemaMetricsMXBean,SnapshotMetricsMXBean,DataChangeEventListener<P>,SnapshotProgressListener<P>
public class BinlogSnapshotChangeEventSourceMetrics<P extends BinlogPartition>
extends DefaultSnapshotChangeEventSourceMetrics<P>
implements BinlogSnapshotChangeEventSourceMetricsMXBean
Tracks the snapshot metrics for binlog-based connectors.
- Author:
- Chris Cranford
-
Field Summary
FieldsFields inherited from class io.debezium.pipeline.metrics.PipelineMetrics
metadataProvider, taskContext -
Constructor Summary
ConstructorsConstructorDescriptionBinlogSnapshotChangeEventSourceMetrics(BinlogTaskContext<S> taskContext, ChangeEventQueueMetrics changeEventQueueMetrics, EventMetadataProvider metadataProvider) -
Method Summary
Modifier and TypeMethodDescriptionbooleanGet whether the connector is currently holding a global database block.longvoidSets that the global database lock has been acquired.voidSets that the global database lock has been released.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, snapshotStartedMethods inherited from class io.debezium.pipeline.metrics.PipelineMetrics
getCurrentQueueSizeInBytes, getLastEvent, getMaxQueueSizeInBytes, getMilliSecondsSinceLastEvent, getNumberOfErroneousEvents, getNumberOfEventsFiltered, getQueueRemainingCapacity, getQueueTotalCapacity, getTotalNumberOfCreateEventsSeen, getTotalNumberOfDeleteEventsSeen, getTotalNumberOfUpdateEventsSeen, onConnectorEvent, onErroneousEvent, onErroneousEvent, onEvent, onFilteredEvent, onFilteredEventMethods inherited from class io.debezium.metrics.Metrics
metricName, metricName, register, unregisterMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface io.debezium.pipeline.metrics.ChangeEventSourceMetrics
register, unregisterMethods inherited from interface io.debezium.pipeline.metrics.ChangeEventSourceMetricsMXBean
resetMethods inherited from interface io.debezium.pipeline.metrics.traits.CommonEventMetricsMXBean
getLastEvent, getMilliSecondsSinceLastEvent, getNumberOfErroneousEvents, getNumberOfEventsFiltered, getTotalNumberOfCreateEventsSeen, getTotalNumberOfDeleteEventsSeen, getTotalNumberOfUpdateEventsSeenMethods inherited from interface io.debezium.pipeline.source.spi.DataChangeEventListener
onConnectorEvent, onErroneousEvent, onErroneousEvent, onEvent, onFilteredEvent, onFilteredEventMethods inherited from interface io.debezium.pipeline.metrics.traits.QueueMetricsMXBean
getCurrentQueueSizeInBytes, getMaxQueueSizeInBytes, getQueueRemainingCapacity, getQueueTotalCapacityMethods inherited from interface io.debezium.pipeline.metrics.traits.SchemaMetricsMXBean
getCapturedTablesMethods 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
-
BinlogSnapshotChangeEventSourceMetrics
public BinlogSnapshotChangeEventSourceMetrics(BinlogTaskContext<S> taskContext, ChangeEventQueueMetrics changeEventQueueMetrics, EventMetadataProvider metadataProvider)
-
-
Method Details
-
getHoldingGlobalLock
public boolean getHoldingGlobalLock()Description copied from interface:BinlogSnapshotChangeEventSourceMetricsMXBeanGet whether the connector is currently holding a global database block.- Specified by:
getHoldingGlobalLockin interfaceBinlogSnapshotChangeEventSourceMetricsMXBean- Returns:
- true if there is a global database lock, false otherwise
-
getTotalNumberOfEventsSeen
public long getTotalNumberOfEventsSeen()- Specified by:
getTotalNumberOfEventsSeenin interfaceCommonEventMetricsMXBean- Overrides:
getTotalNumberOfEventsSeenin classPipelineMetrics<P extends BinlogPartition>
-
setGlobalLockAcquired
public void setGlobalLockAcquired()Sets that the global database lock has been acquired. -
setGlobalLockReleased
public void setGlobalLockReleased()Sets that the global database lock has been released.
-