@ThreadSafe public class LogMinerMetrics extends io.debezium.metrics.Metrics implements LogMinerMetricsMXBean
| Constructor and Description |
|---|
LogMinerMetrics(io.debezium.connector.common.CdcSourceTaskContext taskContext) |
| Modifier and Type | Method and Description |
|---|---|
void |
changeBatchSize(boolean increment) |
void |
changeSleepingTime(boolean increment)
change sleeping time
|
long |
getAverageBatchProcessingThroughput()
This represents the average number of entries processed per second from LogMiner sessions.
|
int |
getBatchSize()
Maximum number of entries in Log Miner view to fetch.
|
String[] |
getCurrentRedoLogFileName()
Exposes current redo log file.
|
Long |
getCurrentScn()
Exposes current SCN in the database.
|
long |
getFetchingQueryCount()
Log Miner view query returns number of captured DML , Commit and Rollback.
|
int |
getHoursToKeepTransactionInBuffer() |
long |
getLastBatchProcessingDuration() |
long |
getLastBatchProcessingThroughput()
This represents the number of entries processed per second in the last LogMiner session.
|
int |
getLastCapturedDmlCount() |
Long |
getLastDurationOfFetchingQuery()
Log Miner view query returns number of captured DML , Commit and Rollback.
|
long |
getMaxBatchProcessingThroughput()
This represents the maximum number of entries processed per second from LogMiner sessions.
|
Long |
getMaxCapturedDmlInBatch() |
Long |
getMaxDurationOfFetchingQuery() |
Integer |
getMillisecondToSleepBetweenMiningQuery() |
long |
getNetworkConnectionProblemsCounter() |
boolean |
getRecordMiningHistory()
this flag indicates whether log mining is being recorded by
HistoryRecorder |
String[] |
getRedoLogStatus()
Exposes states of redo logs: current, active, inactive, unused ...
|
int |
getSwitchCounter()
fetches counter of redo switches for the last day.
|
long |
getTotalCapturedDmlCount() |
void |
incrementNetworkConnectionProblemsCounter() |
void |
reset()
Resets metrics.
|
void |
setBatchSize(int size)
this gives ability to manipulate number of entries in Log Miner view to fetch.
|
void |
setCurrentLogFileName(Set<String> names) |
void |
setCurrentScn(Long scn) |
void |
setHoursToKeepTransactionInBuffer(int hours)
Set the number of hours to retain transaction in buffer prior to abandoning
|
void |
setLastCapturedDmlCount(int dmlCount) |
void |
setLastDurationOfBatchCapturing(Duration lastDuration) |
void |
setLastDurationOfBatchProcessing(Duration lastDuration) |
void |
setMillisecondToSleepBetweenMiningQuery(Integer milliseconds)
sets number of milliseconds for connector to sleep before fetching another batch from the Log Miner view
|
void |
setRecordMiningHistory(boolean doRecording)
this flag turns on recording of captured incremental changes.
|
void |
setRedoLogStatus(Map<String,String> status) |
void |
setSwitchCount(int counter) |
String |
toString() |
public static final int DEFAULT_BATCH_SIZE
private static final int MAX_SLEEP_TIME
private static final int DEFAULT_SLEEP_TIME
private static final int MIN_SLEEP_TIME
private static final int MIN_BATCH_SIZE
private static final int MAX_BATCH_SIZE
private static final int DEFAULT_HOURS_TO_KEEP_TRANSACTION
private static final int SLEEP_TIME_INCREMENT
private final AtomicLong currentScn
private final AtomicInteger logMinerQueryCount
private final AtomicInteger totalCapturedDmlCount
private final AtomicReference<Duration> totalDurationOfFetchingQuery
private final AtomicInteger lastCapturedDmlCount
private final AtomicReference<Duration> lastDurationOfFetchingQuery
private final AtomicLong maxCapturedDmlCount
private final AtomicReference<Duration> maxDurationOfFetchingQuery
private final AtomicReference<Duration> totalBatchProcessingDuration
private final AtomicReference<Duration> lastBatchProcessingDuration
private final AtomicReference<Duration> maxBatchProcessingDuration
private final AtomicLong maxBatchProcessingThroughput
private final AtomicReference<String[]> currentLogFileName
private final AtomicReference<String[]> redoLogStatus
private final AtomicInteger switchCounter
private final AtomicInteger batchSize
private final AtomicInteger millisecondToSleepBetweenMiningQuery
private final AtomicBoolean recordMiningHistory
private final AtomicInteger hoursToKeepTransaction
private final AtomicLong networkConnectionProblemsCounter
LogMinerMetrics(io.debezium.connector.common.CdcSourceTaskContext taskContext)
public void reset()
LogMinerMetricsMXBeanreset in interface LogMinerMetricsMXBeanpublic void setCurrentScn(Long scn)
public void setSwitchCount(int counter)
public void setLastCapturedDmlCount(int dmlCount)
public void setLastDurationOfBatchCapturing(Duration lastDuration)
public void setLastDurationOfBatchProcessing(Duration lastDuration)
public void incrementNetworkConnectionProblemsCounter()
public Long getCurrentScn()
LogMinerMetricsMXBeangetCurrentScn in interface LogMinerMetricsMXBeanpublic long getTotalCapturedDmlCount()
getTotalCapturedDmlCount in interface LogMinerMetricsMXBeanpublic String[] getCurrentRedoLogFileName()
LogMinerMetricsMXBeangetCurrentRedoLogFileName in interface LogMinerMetricsMXBeanpublic String[] getRedoLogStatus()
LogMinerMetricsMXBeangetRedoLogStatus in interface LogMinerMetricsMXBeanpublic int getSwitchCounter()
LogMinerMetricsMXBeangetSwitchCounter in interface LogMinerMetricsMXBeanpublic Long getLastDurationOfFetchingQuery()
LogMinerMetricsMXBeangetLastDurationOfFetchingQuery in interface LogMinerMetricsMXBeanpublic long getLastBatchProcessingDuration()
getLastBatchProcessingDuration in interface LogMinerMetricsMXBeanpublic Long getMaxDurationOfFetchingQuery()
getMaxDurationOfFetchingQuery in interface LogMinerMetricsMXBeanpublic Long getMaxCapturedDmlInBatch()
getMaxCapturedDmlInBatch in interface LogMinerMetricsMXBeanpublic int getLastCapturedDmlCount()
getLastCapturedDmlCount in interface LogMinerMetricsMXBeanpublic long getAverageBatchProcessingThroughput()
LogMinerMetricsMXBeangetAverageBatchProcessingThroughput in interface LogMinerMetricsMXBeanpublic long getLastBatchProcessingThroughput()
LogMinerMetricsMXBeangetLastBatchProcessingThroughput in interface LogMinerMetricsMXBeanpublic long getFetchingQueryCount()
LogMinerMetricsMXBeangetFetchingQueryCount in interface LogMinerMetricsMXBeanpublic int getBatchSize()
LogMinerMetricsMXBeangetBatchSize in interface LogMinerMetricsMXBeanpublic Integer getMillisecondToSleepBetweenMiningQuery()
getMillisecondToSleepBetweenMiningQuery in interface LogMinerMetricsMXBeanpublic boolean getRecordMiningHistory()
LogMinerMetricsMXBeanHistoryRecordergetRecordMiningHistory in interface LogMinerMetricsMXBeanpublic int getHoursToKeepTransactionInBuffer()
getHoursToKeepTransactionInBuffer in interface LogMinerMetricsMXBeanpublic long getMaxBatchProcessingThroughput()
LogMinerMetricsMXBeangetMaxBatchProcessingThroughput in interface LogMinerMetricsMXBeanpublic long getNetworkConnectionProblemsCounter()
getNetworkConnectionProblemsCounter in interface LogMinerMetricsMXBeanpublic void setBatchSize(int size)
LogMinerMetricsMXBeansetBatchSize in interface LogMinerMetricsMXBeansize - limitpublic void setMillisecondToSleepBetweenMiningQuery(Integer milliseconds)
LogMinerMetricsMXBeansetMillisecondToSleepBetweenMiningQuery in interface LogMinerMetricsMXBeanmilliseconds - to sleeppublic void changeSleepingTime(boolean increment)
LogMinerMetricsMXBeanchangeSleepingTime in interface LogMinerMetricsMXBeanincrement - true to add, false to deductpublic void changeBatchSize(boolean increment)
changeBatchSize in interface LogMinerMetricsMXBeanpublic void setRecordMiningHistory(boolean doRecording)
LogMinerMetricsMXBeansetRecordMiningHistory in interface LogMinerMetricsMXBeandoRecording - true - recordpublic void setHoursToKeepTransactionInBuffer(int hours)
LogMinerMetricsMXBeansetHoursToKeepTransactionInBuffer in interface LogMinerMetricsMXBeanhours - the number of hoursCopyright © 2021 JBoss by Red Hat. All rights reserved.