@ThreadSafe public class LogMinerMetrics extends Metrics implements LogMinerMetricsMXBean
| Constructor and Description |
|---|
LogMinerMetrics(CdcSourceTaskContext taskContext,
OracleConnectorConfig connectorConfig) |
| Modifier and Type | Method and Description |
|---|---|
void |
addCurrentMiningSessionStart(Duration currentStartLogMiningSession) |
void |
addCurrentParseTime(Duration currentParseTime) |
void |
addCurrentResultSetNext(Duration currentNextTime) |
void |
addProcessedRows(Long rows) |
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 LogMiner view to fetch.
|
String[] |
getCurrentRedoLogFileName() |
Long |
getCurrentScn() |
long |
getFetchingQueryCount()
LogMiner view query returns number of captured DML , Commit and Rollback.
|
int |
getHoursToKeepTransactionInBuffer() |
long |
getLastBatchProcessingThroughput()
This represents the number of entries processed per second in the last LogMiner session.
|
long |
getLastBatchProcessingTimeInMilliseconds() |
int |
getLastCapturedDmlCount() |
Long |
getLastDurationOfFetchQueryInMilliseconds()
LogMiner view query returns number of captured DML , Commit and Rollback.
|
long |
getLastMiningSessionStartTimeInMilliseconds() |
long |
getMaxBatchProcessingThroughput()
This represents the maximum number of entries processed per second from LogMiner sessions.
|
long |
getMaxBatchProcessingTimeInMilliseconds() |
Long |
getMaxCapturedDmlInBatch() |
Long |
getMaxDurationOfFetchQueryInMilliseconds() |
long |
getMaximumMinedLogCount() |
long |
getMaxMiningSessionStartTimeInMilliseconds() |
long |
getMillisecondToSleepBetweenMiningQuery() |
long |
getMinBatchProcessingTimeInMilliseconds() |
long |
getMinimumMinedLogCount() |
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() |
long |
getTotalMiningSessionStartTimeInMilliseconds() |
long |
getTotalParseTimeInMilliseconds() |
long |
getTotalProcessedRows() |
long |
getTotalProcessingTimeInMilliseconds() |
long |
getTotalResultSetNextTimeInMilliseconds() |
void |
incrementNetworkConnectionProblemsCounter() |
void |
reset()
Resets metrics.
|
void |
setBatchSize(int size)
this gives ability to manipulate number of entries in LogMiner view to fetch.
|
void |
setCurrentBatchProcessingTime(Duration currentBatchProcessingTime) |
void |
setCurrentLogFileName(Set<String> names) |
void |
setCurrentScn(Scn scn) |
void |
setLastCapturedDmlCount(int dmlCount) |
void |
setLastDurationOfBatchCapturing(Duration lastDuration) |
void |
setLastDurationOfBatchProcessing(Duration lastDuration) |
void |
setMillisecondToSleepBetweenMiningQuery(long milliseconds)
sets number of milliseconds for connector to sleep before fetching another batch from the LogMiner view
|
void |
setRedoLogStatus(Map<String,String> status) |
void |
setSwitchCount(int counter) |
String |
toString() |
metricName, register, unregisterprivate static final org.slf4j.Logger LOGGER
private final AtomicReference<Scn> 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 AtomicLong totalProcessedRows
private final AtomicReference<Duration> maxDurationOfFetchingQuery
private final AtomicReference<Duration> totalBatchProcessingDuration
private final AtomicReference<Duration> lastBatchProcessingDuration
private final AtomicReference<Duration> maxBatchProcessingDuration
private final AtomicReference<Duration> totalParseTime
private final AtomicReference<Duration> totalStartLogMiningSessionDuration
private final AtomicReference<Duration> lastStartLogMiningSessionDuration
private final AtomicReference<Duration> maxStartingLogMiningSessionDuration
private final AtomicReference<Duration> totalProcessingTime
private final AtomicReference<Duration> minBatchProcessingTime
private final AtomicReference<Duration> maxBatchProcessingTime
private final AtomicReference<Duration> totalResultSetNextTime
private final AtomicLong maxBatchProcessingThroughput
private final AtomicReference<String[]> currentLogFileName
private final AtomicReference<String[]> redoLogStatus
private final AtomicLong minimumLogsMined
private final AtomicLong maximumLogsMined
private final AtomicInteger switchCounter
private final AtomicInteger batchSize
private final AtomicLong millisecondToSleepBetweenMiningQuery
private final AtomicBoolean recordMiningHistory
private final AtomicInteger hoursToKeepTransaction
private final AtomicLong networkConnectionProblemsCounter
private final int batchSizeMin
private final int batchSizeMax
private final int batchSizeDefault
private final long sleepTimeMin
private final long sleepTimeMax
private final long sleepTimeDefault
private final long sleepTimeIncrement
LogMinerMetrics(CdcSourceTaskContext taskContext, OracleConnectorConfig connectorConfig)
public void reset()
LogMinerMetricsMXBeanreset in interface LogMinerMetricsMXBeanpublic void setCurrentScn(Scn scn)
public long getMinimumMinedLogCount()
getMinimumMinedLogCount in interface LogMinerMetricsMXBeanpublic long getMaximumMinedLogCount()
getMaximumMinedLogCount in interface LogMinerMetricsMXBeanpublic 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()
getCurrentScn in interface LogMinerMetricsMXBeanpublic long getTotalCapturedDmlCount()
getTotalCapturedDmlCount in interface LogMinerMetricsMXBeanpublic String[] getCurrentRedoLogFileName()
getCurrentRedoLogFileName in interface LogMinerMetricsMXBeanpublic String[] getRedoLogStatus()
LogMinerMetricsMXBeangetRedoLogStatus in interface LogMinerMetricsMXBeanpublic int getSwitchCounter()
LogMinerMetricsMXBeangetSwitchCounter in interface LogMinerMetricsMXBeanpublic Long getLastDurationOfFetchQueryInMilliseconds()
LogMinerMetricsMXBeangetLastDurationOfFetchQueryInMilliseconds in interface LogMinerMetricsMXBeanpublic long getLastBatchProcessingTimeInMilliseconds()
getLastBatchProcessingTimeInMilliseconds in interface LogMinerMetricsMXBeanpublic Long getMaxDurationOfFetchQueryInMilliseconds()
getMaxDurationOfFetchQueryInMilliseconds in interface LogMinerMetricsMXBeanpublic Long getMaxCapturedDmlInBatch()
getMaxCapturedDmlInBatch in interface LogMinerMetricsMXBeanpublic int getLastCapturedDmlCount()
getLastCapturedDmlCount in interface LogMinerMetricsMXBeanpublic long getTotalProcessedRows()
getTotalProcessedRows in interface LogMinerMetricsMXBeanpublic long getTotalResultSetNextTimeInMilliseconds()
getTotalResultSetNextTimeInMilliseconds 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 long 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 long getTotalParseTimeInMilliseconds()
getTotalParseTimeInMilliseconds in interface LogMinerMetricsMXBeanpublic void addCurrentParseTime(Duration currentParseTime)
public long getTotalMiningSessionStartTimeInMilliseconds()
getTotalMiningSessionStartTimeInMilliseconds in interface LogMinerMetricsMXBeanpublic void addCurrentMiningSessionStart(Duration currentStartLogMiningSession)
public long getLastMiningSessionStartTimeInMilliseconds()
getLastMiningSessionStartTimeInMilliseconds in interface LogMinerMetricsMXBeanpublic long getMaxMiningSessionStartTimeInMilliseconds()
getMaxMiningSessionStartTimeInMilliseconds in interface LogMinerMetricsMXBeanpublic long getTotalProcessingTimeInMilliseconds()
getTotalProcessingTimeInMilliseconds in interface LogMinerMetricsMXBeanpublic long getMinBatchProcessingTimeInMilliseconds()
getMinBatchProcessingTimeInMilliseconds in interface LogMinerMetricsMXBeanpublic long getMaxBatchProcessingTimeInMilliseconds()
getMaxBatchProcessingTimeInMilliseconds in interface LogMinerMetricsMXBeanpublic void setCurrentBatchProcessingTime(Duration currentBatchProcessingTime)
public void addCurrentResultSetNext(Duration currentNextTime)
public void addProcessedRows(Long rows)
public void setBatchSize(int size)
LogMinerMetricsMXBeansetBatchSize in interface LogMinerMetricsMXBeansize - limitpublic void setMillisecondToSleepBetweenMiningQuery(long 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 LogMinerMetricsMXBeanCopyright © 2021 JBoss by Red Hat. All rights reserved.