Class SqlServerSnapshotPartitionMetrics
- java.lang.Object
-
- io.debezium.metrics.Metrics
-
- io.debezium.connector.sqlserver.metrics.AbstractSqlServerPartitionMetrics
-
- io.debezium.connector.sqlserver.metrics.SqlServerSnapshotPartitionMetrics
-
- All Implemented Interfaces:
SqlServerPartitionMetricsMXBean,SqlServerSnapshotPartitionMetricsMXBean,CommonEventMetricsMXBean,SchemaMetricsMXBean,SnapshotMetricsMXBean
class SqlServerSnapshotPartitionMetrics extends AbstractSqlServerPartitionMetrics implements SqlServerSnapshotPartitionMetricsMXBean
-
-
Field Summary
Fields Modifier and Type Field Description private SnapshotMetersnapshotMeter
-
Constructor Summary
Constructors Constructor Description SqlServerSnapshotPartitionMetrics(CdcSourceTaskContext taskContext, Map<String,String> tags, EventMetadataProvider metadataProvider)
-
Method Summary
-
Methods inherited from class io.debezium.connector.sqlserver.metrics.AbstractSqlServerPartitionMetrics
getLastEvent, getMilliSecondsSinceLastEvent, getNumberOfErroneousEvents, getNumberOfEventsFiltered, getTotalNumberOfCreateEventsSeen, getTotalNumberOfDeleteEventsSeen, getTotalNumberOfEventsSeen, 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.traits.CommonEventMetricsMXBean
getLastEvent, getMilliSecondsSinceLastEvent, getNumberOfErroneousEvents, getNumberOfEventsFiltered, getTotalNumberOfCreateEventsSeen, getTotalNumberOfDeleteEventsSeen, getTotalNumberOfEventsSeen, getTotalNumberOfUpdateEventsSeen
-
-
-
-
Field Detail
-
snapshotMeter
private final SnapshotMeter snapshotMeter
-
-
Constructor Detail
-
SqlServerSnapshotPartitionMetrics
SqlServerSnapshotPartitionMetrics(CdcSourceTaskContext taskContext, Map<String,String> tags, EventMetadataProvider metadataProvider)
-
-
Method Detail
-
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
-
getCapturedTables
public String[] getCapturedTables()
- Specified by:
getCapturedTablesin interfaceSchemaMetricsMXBean
-
monitoredDataCollectionsDetermined
void monitoredDataCollectionsDetermined(Iterable<? extends DataCollectionId> dataCollectionIds)
-
dataCollectionSnapshotCompleted
void dataCollectionSnapshotCompleted(DataCollectionId dataCollectionId, long numRows)
-
snapshotStarted
void snapshotStarted()
-
snapshotCompleted
void snapshotCompleted()
-
snapshotAborted
void snapshotAborted()
-
rowsScanned
void rowsScanned(TableId tableId, long numRows)
-
getRowsScanned
public ConcurrentMap<String,Long> getRowsScanned()
- Specified by:
getRowsScannedin interfaceSnapshotMetricsMXBean
-
currentChunk
void currentChunk(String chunkId, Object[] chunkFrom, Object[] chunkTo, Object[] tableTo)
-
getChunkId
public String getChunkId()
- Specified by:
getChunkIdin interfaceSnapshotMetricsMXBean
-
getChunkFrom
public String getChunkFrom()
- Specified by:
getChunkFromin interfaceSnapshotMetricsMXBean
-
getChunkTo
public String getChunkTo()
- Specified by:
getChunkToin interfaceSnapshotMetricsMXBean
-
getTableFrom
public String getTableFrom()
- Specified by:
getTableFromin interfaceSnapshotMetricsMXBean
-
getTableTo
public String getTableTo()
- Specified by:
getTableToin interfaceSnapshotMetricsMXBean
-
reset
public void reset()
- Specified by:
resetin interfaceSqlServerPartitionMetricsMXBean- Overrides:
resetin classAbstractSqlServerPartitionMetrics
-
-