@ThreadSafe public class SnapshotChangeEventSourceMetrics extends PipelineMetrics implements SnapshotChangeEventSourceMetricsMXBean, SnapshotProgressListener
| Modifier and Type | Field and Description |
|---|---|
private Set<String> |
monitoredTables |
private ConcurrentMap<String,String> |
remainingTables |
private ConcurrentMap<String,Long> |
rowsScanned |
private AtomicBoolean |
snapshotAborted |
private AtomicBoolean |
snapshotCompleted |
private AtomicBoolean |
snapshotRunning |
private AtomicLong |
startTime |
private AtomicLong |
stopTime |
clock, lastEventTimestamp, metadataProvider, numberOfErroneousEvents, taskContext, totalNumberOfEventsSeenNO_OPNO_OP| Constructor and Description |
|---|
SnapshotChangeEventSourceMetrics(T taskContext,
ChangeEventQueueMetrics changeEventQueueMetrics,
EventMetadataProvider metadataProvider) |
| Modifier and Type | Method and Description |
|---|---|
void |
dataCollectionSnapshotCompleted(DataCollectionId dataCollectionId,
long numRows) |
String[] |
getMonitoredTables() |
int |
getRemainingTableCount() |
ConcurrentMap<String,Long> |
getRowsScanned() |
boolean |
getSnapshotAborted() |
boolean |
getSnapshotCompleted() |
long |
getSnapshotDurationInSeconds() |
boolean |
getSnapshotRunning() |
int |
getTotalTableCount() |
void |
monitoredDataCollectionsDetermined(Iterable<? extends DataCollectionId> dataCollectionIds) |
void |
reset() |
void |
rowsScanned(TableId tableId,
long numRows) |
void |
snapshotAborted() |
void |
snapshotCompleted() |
void |
snapshotStarted() |
getCurrentQueueSizeInBytes, getLastEvent, getMaxQueueSizeInBytes, getMilliSecondsSinceLastEvent, getNumberOfErroneousEvents, getNumberOfEventsFiltered, getQueueRemainingCapacity, getQueueTotalCapacity, getTotalNumberOfEventsSeen, onConnectorEvent, onErroneousEvent, onEvent, onFilteredEventmetricName, register, unregisterclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetCurrentQueueSizeInBytes, getLastEvent, getMaxQueueSizeInBytes, getMilliSecondsSinceLastEvent, getNumberOfErroneousEvents, getNumberOfEventsFiltered, getQueueRemainingCapacity, getQueueTotalCapacity, getTotalNumberOfEventsSeenprivate final AtomicBoolean snapshotRunning
private final AtomicBoolean snapshotCompleted
private final AtomicBoolean snapshotAborted
private final AtomicLong startTime
private final AtomicLong stopTime
private final ConcurrentMap<String,Long> rowsScanned
private final ConcurrentMap<String,String> remainingTables
public SnapshotChangeEventSourceMetrics(T taskContext,
ChangeEventQueueMetrics changeEventQueueMetrics,
EventMetadataProvider metadataProvider)
public int getTotalTableCount()
getTotalTableCount in interface SnapshotChangeEventSourceMetricsMXBeanpublic int getRemainingTableCount()
getRemainingTableCount in interface SnapshotChangeEventSourceMetricsMXBeanpublic boolean getSnapshotRunning()
getSnapshotRunning in interface SnapshotChangeEventSourceMetricsMXBeanpublic boolean getSnapshotCompleted()
getSnapshotCompleted in interface SnapshotChangeEventSourceMetricsMXBeanpublic boolean getSnapshotAborted()
getSnapshotAborted in interface SnapshotChangeEventSourceMetricsMXBeanpublic long getSnapshotDurationInSeconds()
getSnapshotDurationInSeconds in interface SnapshotChangeEventSourceMetricsMXBeanpublic String[] getMonitoredTables()
getMonitoredTables in interface ChangeEventSourceMetricsMXBeanpublic void monitoredDataCollectionsDetermined(Iterable<? extends DataCollectionId> dataCollectionIds)
monitoredDataCollectionsDetermined in interface SnapshotProgressListenerpublic void dataCollectionSnapshotCompleted(DataCollectionId dataCollectionId, long numRows)
dataCollectionSnapshotCompleted in interface SnapshotProgressListenerpublic void snapshotStarted()
snapshotStarted in interface SnapshotProgressListenerpublic void snapshotCompleted()
snapshotCompleted in interface SnapshotProgressListenerpublic void snapshotAborted()
snapshotAborted in interface SnapshotProgressListenerpublic void rowsScanned(TableId tableId, long numRows)
rowsScanned in interface SnapshotProgressListenerpublic ConcurrentMap<String,Long> getRowsScanned()
getRowsScanned in interface SnapshotChangeEventSourceMetricsMXBeanpublic void reset()
reset in interface ChangeEventSourceMetricsMXBeanreset in class PipelineMetricsCopyright © 2021 JBoss by Red Hat. All rights reserved.