class BinlogReaderMetrics extends Metrics implements BinlogReaderMetricsMXBean
| Modifier and Type | Field and Description |
|---|---|
private com.github.shyiko.mysql.binlog.BinaryLogClient |
client |
private AtomicLong |
numberOfCommittedTransactions |
private AtomicLong |
numberOfLargeTransactions |
private AtomicLong |
numberOfNotWellFormedTransactions |
private AtomicLong |
numberOfRolledBackTransactions |
private MySqlSchema |
schema |
private com.github.shyiko.mysql.binlog.jmx.BinaryLogClientStatistics |
stats |
clock, lastEventTimestamp, numberOfEventsSkipped, taskContext, totalNumberOfEventsSeenNO_OP| Constructor and Description |
|---|
BinlogReaderMetrics(com.github.shyiko.mysql.binlog.BinaryLogClient client,
MySqlTaskContext taskContext) |
| Modifier and Type | Method and Description |
|---|---|
String |
getBinlogFilename() |
long |
getBinlogPosition() |
String |
getGtidSet() |
String |
getLastEvent() |
long |
getMilliSecondsSinceLastEvent() |
String[] |
getMonitoredTables() |
long |
getNumberOfCommittedTransactions() |
long |
getNumberOfDisconnects() |
long |
getNumberOfLargeTransactions() |
long |
getNumberOfNotWellFormedTransactions() |
long |
getNumberOfRolledBackTransactions() |
long |
getNumberOfSkippedEvents() |
long |
getSecondsBehindMaster() |
long |
getSecondsSinceLastEvent() |
long |
getTotalNumberOfEventsSeen() |
boolean |
isConnected() |
void |
onCommittedTransaction() |
void |
onLargeTransaction() |
void |
onNotWellFormedTransaction() |
void |
onRolledBackTransaction() |
void |
reset() |
getNumberOfEventsSkipped, onEvent, onSkippedEvent, register, unregisterclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetNumberOfEventsSkippedprivate final com.github.shyiko.mysql.binlog.BinaryLogClient client
private final com.github.shyiko.mysql.binlog.jmx.BinaryLogClientStatistics stats
private final MySqlSchema schema
private final AtomicLong numberOfCommittedTransactions
private final AtomicLong numberOfRolledBackTransactions
private final AtomicLong numberOfNotWellFormedTransactions
private final AtomicLong numberOfLargeTransactions
public BinlogReaderMetrics(com.github.shyiko.mysql.binlog.BinaryLogClient client,
MySqlTaskContext taskContext)
public boolean isConnected()
isConnected in interface StreamingChangeEventSourceMetricsMXBeanpublic String getBinlogFilename()
getBinlogFilename in interface BinlogReaderMetricsMXBeanpublic long getBinlogPosition()
getBinlogPosition in interface BinlogReaderMetricsMXBeanpublic String getGtidSet()
getGtidSet in interface BinlogReaderMetricsMXBeanpublic String getLastEvent()
getLastEvent in interface ChangeEventSourceMetricsMXBeangetLastEvent in class Metricspublic long getSecondsSinceLastEvent()
getSecondsSinceLastEvent in interface BinlogReaderMetricsMXBeanpublic long getMilliSecondsSinceLastEvent()
getMilliSecondsSinceLastEvent in interface ChangeEventSourceMetricsMXBeangetMilliSecondsSinceLastEvent in class Metricspublic long getSecondsBehindMaster()
getSecondsBehindMaster in interface BinlogReaderMetricsMXBeanpublic long getTotalNumberOfEventsSeen()
getTotalNumberOfEventsSeen in interface ChangeEventSourceMetricsMXBeangetTotalNumberOfEventsSeen in class Metricspublic long getNumberOfSkippedEvents()
getNumberOfSkippedEvents in interface BinlogReaderMetricsMXBeanpublic long getNumberOfDisconnects()
getNumberOfDisconnects in interface BinlogReaderMetricsMXBeanpublic void reset()
reset in interface ChangeEventSourceMetricsMXBeanreset in class Metricspublic long getNumberOfCommittedTransactions()
getNumberOfCommittedTransactions in interface BinlogReaderMetricsMXBeanpublic long getNumberOfRolledBackTransactions()
getNumberOfRolledBackTransactions in interface BinlogReaderMetricsMXBeanpublic long getNumberOfNotWellFormedTransactions()
getNumberOfNotWellFormedTransactions in interface BinlogReaderMetricsMXBeanpublic long getNumberOfLargeTransactions()
getNumberOfLargeTransactions in interface BinlogReaderMetricsMXBeanpublic void onCommittedTransaction()
public void onRolledBackTransaction()
public void onNotWellFormedTransaction()
public void onLargeTransaction()
public String[] getMonitoredTables()
getMonitoredTables in interface ChangeEventSourceMetricsMXBeanCopyright © 2018 JBoss by Red Hat. All rights reserved.