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 com.github.shyiko.mysql.binlog.jmx.BinaryLogClientStatistics |
stats |
| Constructor and Description |
|---|
BinlogReaderMetrics(com.github.shyiko.mysql.binlog.BinaryLogClient client) |
| Modifier and Type | Method and Description |
|---|---|
String |
getBinlogFilename() |
long |
getBinlogPosition() |
String |
getGtidSet() |
String |
getLastEvent() |
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() |
register, unregisterprivate final com.github.shyiko.mysql.binlog.BinaryLogClient client
private final com.github.shyiko.mysql.binlog.jmx.BinaryLogClientStatistics stats
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)
public boolean isConnected()
isConnected in interface BinlogReaderMetricsMXBeanpublic String getBinlogFilename()
getBinlogFilename in interface BinlogReaderMetricsMXBeanpublic long getBinlogPosition()
getBinlogPosition in interface BinlogReaderMetricsMXBeanpublic String getGtidSet()
getGtidSet in interface BinlogReaderMetricsMXBeanpublic String getLastEvent()
getLastEvent in interface BinlogReaderMetricsMXBeanpublic long getSecondsSinceLastEvent()
getSecondsSinceLastEvent in interface BinlogReaderMetricsMXBeanpublic long getSecondsBehindMaster()
getSecondsBehindMaster in interface BinlogReaderMetricsMXBeanpublic long getTotalNumberOfEventsSeen()
getTotalNumberOfEventsSeen in interface BinlogReaderMetricsMXBeanpublic long getNumberOfSkippedEvents()
getNumberOfSkippedEvents in interface BinlogReaderMetricsMXBeanpublic long getNumberOfDisconnects()
getNumberOfDisconnects in interface BinlogReaderMetricsMXBeanpublic void reset()
reset in interface BinlogReaderMetricsMXBeanpublic 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()
Copyright © 2018 JBoss by Red Hat. All rights reserved.