public class MySqlStreamingChangeEventSourceMetrics extends StreamingChangeEventSourceMetrics implements MySqlStreamingChangeEventSourceMetricsMXBean
| Modifier and Type | Field and Description |
|---|---|
private com.github.shyiko.mysql.binlog.BinaryLogClient |
client |
private AtomicBoolean |
isGtidModeEnabled |
private AtomicReference<String> |
lastTransactionId |
private AtomicLong |
milliSecondsBehindMaster |
private AtomicLong |
numberOfCommittedTransactions |
private AtomicLong |
numberOfLargeTransactions |
private AtomicLong |
numberOfNotWellFormedTransactions |
private AtomicLong |
numberOfRolledBackTransactions |
private MySqlDatabaseSchema |
schema |
private com.github.shyiko.mysql.binlog.jmx.BinaryLogClientStatistics |
stats |
clock, lastEventTimestamp, metadataProvider, numberOfErroneousEvents, taskContext, totalNumberOfEventsSeenNO_OP| Constructor and Description |
|---|
MySqlStreamingChangeEventSourceMetrics(MySqlTaskContext taskContext,
ChangeEventQueueMetrics changeEventQueueMetrics,
EventMetadataProvider metadataProvider) |
| Modifier and Type | Method and Description |
|---|---|
String |
getBinlogFilename()
Name of the current MySQL binlog file being read by underlying mysql-binlog-client.
|
long |
getBinlogPosition()
Current MySQL binlog offset position being read by underlying mysql-binlog-client.
|
String |
getGtidSet()
Current MySQL Gtid being read by underlying mysql-binlog-client.
|
boolean |
getIsGtidModeEnabled()
Tracks if the connector is running using Gtids to track current offset.
|
String |
getLastEvent() |
String |
getLastTransactionId() |
long |
getMilliSecondsBehindSource() |
long |
getMilliSecondsSinceLastEvent() |
String[] |
getMonitoredTables() |
long |
getNumberOfCommittedTransactions()
Tracks the number of committed transactions.
|
long |
getNumberOfDisconnects()
Tracks the number of times the underlying mysql-binlog-client has been disconnected from MySQL.
|
long |
getNumberOfLargeTransactions()
Tracks the number of transaction which contains events that contained more entries than could be contained
within the connectors
EventBuffer instance. |
long |
getNumberOfNotWellFormedTransactions()
Tracks the number of transactions which are not well-formed.
|
long |
getNumberOfRolledBackTransactions()
Tracks the number of rolled back transactions.
|
long |
getNumberOfSkippedEvents()
Tracks the number of events skipped by underlying mysql-binlog-client, generally due to the client
being unable to properly deserialize the event.
|
Map<String,String> |
getSourceEventPosition() |
long |
getTotalNumberOfEventsSeen() |
boolean |
isConnected() |
void |
onCommittedTransaction() |
void |
onGtidChange(String gtid) |
void |
onLargeTransaction() |
void |
onNotWellFormedTransaction() |
void |
onRolledBackTransaction() |
void |
reset() |
void |
setIsGtidModeEnabled(boolean enabled) |
void |
setMilliSecondsBehindSource(long value) |
connected, onConnectorEvent, onEventgetCurrentQueueSizeInBytes, getMaxQueueSizeInBytes, getNumberOfErroneousEvents, getNumberOfEventsFiltered, getQueueRemainingCapacity, getQueueTotalCapacity, onErroneousEvent, onFilteredEventmetricName, register, unregisterclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetCurrentQueueSizeInBytes, getMaxQueueSizeInBytes, getNumberOfErroneousEvents, getNumberOfEventsFiltered, getQueueRemainingCapacity, getQueueTotalCapacityonErroneousEvent, onFilteredEventprivate final com.github.shyiko.mysql.binlog.BinaryLogClient client
private final com.github.shyiko.mysql.binlog.jmx.BinaryLogClientStatistics stats
private final MySqlDatabaseSchema schema
private final AtomicLong numberOfCommittedTransactions
private final AtomicLong numberOfRolledBackTransactions
private final AtomicLong numberOfNotWellFormedTransactions
private final AtomicLong numberOfLargeTransactions
private final AtomicBoolean isGtidModeEnabled
private final AtomicLong milliSecondsBehindMaster
private final AtomicReference<String> lastTransactionId
public MySqlStreamingChangeEventSourceMetrics(MySqlTaskContext taskContext, ChangeEventQueueMetrics changeEventQueueMetrics, EventMetadataProvider metadataProvider)
public boolean isConnected()
isConnected in interface StreamingChangeEventSourceMetricsMXBeanisConnected in class StreamingChangeEventSourceMetricspublic String getBinlogFilename()
MySqlStreamingChangeEventSourceMetricsMXBeangetBinlogFilename in interface MySqlStreamingChangeEventSourceMetricsMXBeanpublic long getBinlogPosition()
MySqlStreamingChangeEventSourceMetricsMXBeangetBinlogPosition in interface MySqlStreamingChangeEventSourceMetricsMXBeanpublic String getGtidSet()
MySqlStreamingChangeEventSourceMetricsMXBeangetGtidSet in interface MySqlStreamingChangeEventSourceMetricsMXBeanpublic boolean getIsGtidModeEnabled()
MySqlStreamingChangeEventSourceMetricsMXBeangetIsGtidModeEnabled in interface MySqlStreamingChangeEventSourceMetricsMXBeanpublic String getLastEvent()
getLastEvent in interface ChangeEventSourceMetricsMXBeangetLastEvent in class PipelineMetricspublic long getMilliSecondsSinceLastEvent()
getMilliSecondsSinceLastEvent in interface ChangeEventSourceMetricsMXBeangetMilliSecondsSinceLastEvent in class PipelineMetricspublic long getTotalNumberOfEventsSeen()
getTotalNumberOfEventsSeen in interface ChangeEventSourceMetricsMXBeangetTotalNumberOfEventsSeen in class PipelineMetricspublic long getNumberOfSkippedEvents()
MySqlStreamingChangeEventSourceMetricsMXBeangetNumberOfSkippedEvents in interface MySqlStreamingChangeEventSourceMetricsMXBeanpublic long getNumberOfDisconnects()
MySqlStreamingChangeEventSourceMetricsMXBeangetNumberOfDisconnects in interface MySqlStreamingChangeEventSourceMetricsMXBeanpublic void reset()
reset in interface ChangeEventSourceMetricsMXBeanreset in class StreamingChangeEventSourceMetricspublic long getNumberOfCommittedTransactions()
MySqlStreamingChangeEventSourceMetricsMXBeangetNumberOfCommittedTransactions in interface MySqlStreamingChangeEventSourceMetricsMXBeangetNumberOfCommittedTransactions in interface StreamingChangeEventSourceMetricsMXBeangetNumberOfCommittedTransactions in class StreamingChangeEventSourceMetricspublic long getNumberOfRolledBackTransactions()
MySqlStreamingChangeEventSourceMetricsMXBeangetNumberOfRolledBackTransactions in interface MySqlStreamingChangeEventSourceMetricsMXBeanpublic long getNumberOfNotWellFormedTransactions()
MySqlStreamingChangeEventSourceMetricsMXBeangetNumberOfNotWellFormedTransactions in interface MySqlStreamingChangeEventSourceMetricsMXBeanpublic long getNumberOfLargeTransactions()
MySqlStreamingChangeEventSourceMetricsMXBeanEventBuffer instance.getNumberOfLargeTransactions in interface MySqlStreamingChangeEventSourceMetricsMXBeanpublic void onCommittedTransaction()
public void onRolledBackTransaction()
public void onNotWellFormedTransaction()
public void onLargeTransaction()
public void onGtidChange(String gtid)
public void setIsGtidModeEnabled(boolean enabled)
public void setMilliSecondsBehindSource(long value)
public String[] getMonitoredTables()
getMonitoredTables in interface ChangeEventSourceMetricsMXBeangetMonitoredTables in class StreamingChangeEventSourceMetricspublic long getMilliSecondsBehindSource()
getMilliSecondsBehindSource in interface StreamingChangeEventSourceMetricsMXBeangetMilliSecondsBehindSource in class StreamingChangeEventSourceMetricspublic Map<String,String> getSourceEventPosition()
getSourceEventPosition in interface StreamingChangeEventSourceMetricsMXBeangetSourceEventPosition in class StreamingChangeEventSourceMetricspublic String getLastTransactionId()
getLastTransactionId in interface StreamingChangeEventSourceMetricsMXBeangetLastTransactionId in class StreamingChangeEventSourceMetricsCopyright © 2021 JBoss by Red Hat. All rights reserved.