Package io.debezium.pipeline.meters
Class SnapshotMeter
java.lang.Object
io.debezium.pipeline.meters.SnapshotMeter
- All Implemented Interfaces:
SchemaMetricsMXBean,SnapshotMetricsMXBean
Carries snapshot metrics.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final AtomicReference<Object[]> private final AtomicReference<String> private final AtomicReference<Object[]> private final io.debezium.util.Clockprivate static final org.slf4j.Loggerprivate final AtomicLongprivate final ConcurrentMap<String, String> private final ConcurrentMap<String, Long> private final AtomicBooleanprivate final AtomicBooleanprivate final AtomicBooleanprivate final AtomicBooleanprivate final AtomicBooleanprivate final AtomicLongprivate final AtomicLongprivate final AtomicLongprivate final AtomicLongprivate final ConcurrentMap<String, Long> private final ConcurrentMap<String, Long> private final AtomicReference<Object[]> private final AtomicReference<Object[]> -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate StringarrayToString(Object[] array) voidchunkProgress(TableId tableId, long totalChunks, long completedChunks) voidcurrentChunk(String chunkId, Object[] chunkFrom, Object[] chunkTo) voidcurrentChunk(String chunkId, Object[] chunkFrom, Object[] chunkTo, Object[] tableTo) voiddataCollectionSnapshotCompleted(io.debezium.spi.schema.DataCollectionId dataCollectionId, long numRows) String[]intbooleanbooleanlongbooleanlongbooleanbooleanintvoidmonitoredDataCollectionsDetermined(Iterable<? extends io.debezium.spi.schema.DataCollectionId> dataCollectionIds) voidreset()voidrowsScanned(TableId tableId, long numRows) voidvoidvoidvoidvoidvoid
-
Field Details
-
LOGGER
private static final org.slf4j.Logger LOGGER -
snapshotRunning
-
snapshotPaused
-
snapshotCompleted
-
snapshotAborted
-
snapshotSkipped
-
startTime
-
stopTime
-
startPauseTime
-
stopPauseTime
-
pauseDuration
-
rowsScanned
-
remainingTables
-
chunkId
-
chunkFrom
-
chunkTo
-
tableFrom
-
tableTo
-
capturedTables
-
tableChunksTotal
-
tableChunksCompleted
-
clock
private final io.debezium.util.Clock clock
-
-
Constructor Details
-
SnapshotMeter
public SnapshotMeter(io.debezium.util.Clock clock)
-
-
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
-
getSnapshotPaused
public boolean getSnapshotPaused()- Specified by:
getSnapshotPausedin interfaceSnapshotMetricsMXBean
-
getSnapshotCompleted
public boolean getSnapshotCompleted()- Specified by:
getSnapshotCompletedin interfaceSnapshotMetricsMXBean
-
getSnapshotAborted
public boolean getSnapshotAborted()- Specified by:
getSnapshotAbortedin interfaceSnapshotMetricsMXBean
-
getSnapshotSkipped
public boolean getSnapshotSkipped()- Specified by:
getSnapshotSkippedin interfaceSnapshotMetricsMXBean
-
getSnapshotDurationInSeconds
public long getSnapshotDurationInSeconds()- Specified by:
getSnapshotDurationInSecondsin interfaceSnapshotMetricsMXBean
-
getSnapshotPausedDurationInSeconds
public long getSnapshotPausedDurationInSeconds()- Specified by:
getSnapshotPausedDurationInSecondsin interfaceSnapshotMetricsMXBean
-
getCapturedTables
- Specified by:
getCapturedTablesin interfaceSchemaMetricsMXBean
-
monitoredDataCollectionsDetermined
public void monitoredDataCollectionsDetermined(Iterable<? extends io.debezium.spi.schema.DataCollectionId> dataCollectionIds) -
dataCollectionSnapshotCompleted
public void dataCollectionSnapshotCompleted(io.debezium.spi.schema.DataCollectionId dataCollectionId, long numRows) -
snapshotStarted
public void snapshotStarted() -
snapshotPaused
public void snapshotPaused() -
snapshotResumed
public void snapshotResumed() -
snapshotCompleted
public void snapshotCompleted() -
snapshotAborted
public void snapshotAborted() -
snapshotSkipped
public void snapshotSkipped() -
rowsScanned
-
getRowsScanned
- Specified by:
getRowsScannedin interfaceSnapshotMetricsMXBean
-
currentChunk
-
currentChunk
-
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
-
chunkProgress
-
getTableChunkCounts
- Specified by:
getTableChunkCountsin interfaceSnapshotMetricsMXBean
-
getTableChunksCompletedCounts
- Specified by:
getTableChunksCompletedCountsin interfaceSnapshotMetricsMXBean
-
arrayToString
-
reset
public void reset()
-