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 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 AtomicLongprivate final AtomicLongprivate final AtomicLongprivate final AtomicLongprivate final AtomicReference<Object[]>private final AtomicReference<Object[]> -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate StringarrayToString(Object[] array) voidcurrentChunk(String chunkId, Object[] chunkFrom, Object[] chunkTo) voidcurrentChunk(String chunkId, Object[] chunkFrom, Object[] chunkTo, Object[] tableTo) voiddataCollectionSnapshotCompleted(DataCollectionId dataCollectionId, long numRows) String[]intbooleanbooleanlongbooleanlongbooleanintvoidmonitoredDataCollectionsDetermined(Iterable<? extends DataCollectionId> dataCollectionIds) voidreset()voidrowsScanned(TableId tableId, long numRows) voidvoidvoidvoidvoid
-
Field Details
-
LOGGER
private static final org.slf4j.Logger LOGGER -
snapshotRunning
-
snapshotPaused
-
snapshotCompleted
-
snapshotAborted
-
startTime
-
stopTime
-
startPauseTime
-
stopPauseTime
-
pauseDuration
-
rowsScanned
-
remainingTables
-
chunkId
-
chunkFrom
-
chunkTo
-
tableFrom
-
tableTo
-
capturedTables
-
clock
-
-
Constructor Details
-
SnapshotMeter
-
-
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
-
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 DataCollectionId> dataCollectionIds) -
dataCollectionSnapshotCompleted
-
snapshotStarted
public void snapshotStarted() -
snapshotPaused
public void snapshotPaused() -
snapshotResumed
public void snapshotResumed() -
snapshotCompleted
public void snapshotCompleted() -
snapshotAborted
public void snapshotAborted() -
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
-
arrayToString
-
reset
public void reset()
-