Package io.debezium.pipeline.metrics
Class DefaultSnapshotChangeEventSourceMetrics<P extends Partition>
java.lang.Object
io.debezium.metrics.Metrics
io.debezium.pipeline.metrics.PipelineMetrics<P>
io.debezium.pipeline.metrics.DefaultSnapshotChangeEventSourceMetrics<P>
- All Implemented Interfaces:
ChangeEventSourceMetrics<P>,ChangeEventSourceMetricsMXBean,SnapshotChangeEventSourceMetrics<P>,SnapshotChangeEventSourceMetricsMXBean,CommonEventMetricsMXBean,QueueMetricsMXBean,SchemaMetricsMXBean,SnapshotMetricsMXBean,DataChangeEventListener<P>,SnapshotProgressListener<P>
@ThreadSafe
public class DefaultSnapshotChangeEventSourceMetrics<P extends Partition>
extends PipelineMetrics<P>
implements SnapshotChangeEventSourceMetrics<P>, SnapshotChangeEventSourceMetricsMXBean
The default implementation of metrics related to the snapshot phase of a connector.
- Author:
- Randall Hauch, Jiri Pechanec
-
Field Summary
FieldsFields inherited from class io.debezium.pipeline.metrics.PipelineMetrics
metadataProvider, taskContext -
Constructor Summary
ConstructorsConstructorDescriptionDefaultSnapshotChangeEventSourceMetrics(T taskContext, ChangeEventQueueMetrics changeEventQueueMetrics, EventMetadataProvider metadataProvider) DefaultSnapshotChangeEventSourceMetrics(T taskContext, ChangeEventQueueMetrics changeEventQueueMetrics, EventMetadataProvider metadataProvider, Map<String, String> tags) -
Method Summary
Modifier and TypeMethodDescriptionvoidcurrentChunk(P partition, String chunkId, Object[] chunkFrom, Object[] chunkTo) voidvoiddataCollectionSnapshotCompleted(P partition, DataCollectionId dataCollectionId, long numRows) String[]String[]Deprecated.Superseded by the 'Captured Tables' metric.intbooleanbooleanlongbooleanintvoidmonitoredDataCollectionsDetermined(P partition, Iterable<? extends DataCollectionId> dataCollectionIds) voidreset()voidrowsScanned(P partition, TableId tableId, long numRows) voidsnapshotAborted(P partition) voidsnapshotCompleted(P partition) voidsnapshotStarted(P partition) Methods inherited from class io.debezium.pipeline.metrics.PipelineMetrics
getCurrentQueueSizeInBytes, getLastEvent, getMaxQueueSizeInBytes, getMilliSecondsSinceLastEvent, getNumberOfErroneousEvents, getNumberOfEventsFiltered, getQueueRemainingCapacity, getQueueTotalCapacity, getTotalNumberOfCreateEventsSeen, getTotalNumberOfDeleteEventsSeen, getTotalNumberOfEventsSeen, 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.traits.CommonEventMetricsMXBean
getLastEvent, getMilliSecondsSinceLastEvent, getNumberOfErroneousEvents, getNumberOfEventsFiltered, getTotalNumberOfCreateEventsSeen, getTotalNumberOfDeleteEventsSeen, getTotalNumberOfEventsSeen, 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, getQueueTotalCapacity
-
Field Details
-
snapshotMeter
-
-
Constructor Details
-
DefaultSnapshotChangeEventSourceMetrics
public DefaultSnapshotChangeEventSourceMetrics(T taskContext, ChangeEventQueueMetrics changeEventQueueMetrics, EventMetadataProvider metadataProvider) -
DefaultSnapshotChangeEventSourceMetrics
public DefaultSnapshotChangeEventSourceMetrics(T taskContext, ChangeEventQueueMetrics changeEventQueueMetrics, EventMetadataProvider metadataProvider, Map<String, String> tags)
-
-
Method Details
-
getTotalTableCount
public int getTotalTableCount()- Specified by:
getTotalTableCountin interfaceSnapshotMetricsMXBean
-
getRemainingTableCount
public int getRemainingTableCount()- Specified by:
getRemainingTableCountin interfaceSnapshotMetricsMXBean
-
getSnapshotRunning
public boolean getSnapshotRunning()- Specified by:
getSnapshotRunningin interfaceSnapshotMetricsMXBean
-
getSnapshotCompleted
public boolean getSnapshotCompleted()- Specified by:
getSnapshotCompletedin interfaceSnapshotMetricsMXBean
-
getSnapshotAborted
public boolean getSnapshotAborted()- Specified by:
getSnapshotAbortedin interfaceSnapshotMetricsMXBean
-
getSnapshotDurationInSeconds
public long getSnapshotDurationInSeconds()- Specified by:
getSnapshotDurationInSecondsin interfaceSnapshotMetricsMXBean
-
getMonitoredTables
Deprecated.Superseded by the 'Captured Tables' metric. UsegetCapturedTables(). Scheduled for removal in a future release.- Specified by:
getMonitoredTablesin interfaceChangeEventSourceMetricsMXBean
-
getCapturedTables
- Specified by:
getCapturedTablesin interfaceSchemaMetricsMXBean
-
monitoredDataCollectionsDetermined
public void monitoredDataCollectionsDetermined(P partition, Iterable<? extends DataCollectionId> dataCollectionIds) - Specified by:
monitoredDataCollectionsDeterminedin interfaceSnapshotProgressListener<P extends Partition>
-
dataCollectionSnapshotCompleted
public void dataCollectionSnapshotCompleted(P partition, DataCollectionId dataCollectionId, long numRows) - Specified by:
dataCollectionSnapshotCompletedin interfaceSnapshotProgressListener<P extends Partition>
-
snapshotStarted
- Specified by:
snapshotStartedin interfaceSnapshotProgressListener<P extends Partition>
-
snapshotCompleted
- Specified by:
snapshotCompletedin interfaceSnapshotProgressListener<P extends Partition>
-
snapshotAborted
- Specified by:
snapshotAbortedin interfaceSnapshotProgressListener<P extends Partition>
-
rowsScanned
- Specified by:
rowsScannedin interfaceSnapshotProgressListener<P extends Partition>
-
getRowsScanned
- Specified by:
getRowsScannedin interfaceSnapshotMetricsMXBean
-
currentChunk
- Specified by:
currentChunkin interfaceSnapshotProgressListener<P extends Partition>
-
currentChunk
public void currentChunk(P partition, String chunkId, Object[] chunkFrom, Object[] chunkTo, Object[] tableTo) - Specified by:
currentChunkin interfaceSnapshotProgressListener<P extends Partition>
-
getChunkId
- Specified by:
getChunkIdin interfaceSnapshotMetricsMXBean
-
getChunkFrom
- Specified by:
getChunkFromin interfaceSnapshotMetricsMXBean
-
getChunkTo
- Specified by:
getChunkToin interfaceSnapshotMetricsMXBean
-
getTableFrom
- Specified by:
getTableFromin interfaceSnapshotMetricsMXBean
-
getTableTo
- Specified by:
getTableToin interfaceSnapshotMetricsMXBean
-
reset
public void reset()- Specified by:
resetin interfaceChangeEventSourceMetricsMXBean- Overrides:
resetin classPipelineMetrics<P extends Partition>
-