|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.github.shyiko.mysql.binlog.jmx.BinaryLogClientStatistics
public class BinaryLogClientStatistics
| Constructor Summary | |
|---|---|
BinaryLogClientStatistics()
|
|
BinaryLogClientStatistics(BinaryLogClient binaryLogClient)
|
|
| Method Summary | |
|---|---|
protected long |
getCurrentTimeMillis()
|
String |
getLastEvent()
|
long |
getNumberOfDisconnects()
|
long |
getNumberOfSkippedEvents()
|
long |
getSecondsBehindMaster()
|
long |
getSecondsSinceLastEvent()
|
long |
getTotalNumberOfEventsSeen()
|
void |
onCommunicationFailure(BinaryLogClient client,
Exception ex)
It's guarantied to be called before BinaryLogClient.LifecycleListener.onDisconnect(BinaryLogClient)) in case of
communication failure. |
void |
onConnect(BinaryLogClient client)
Called once client has successfully logged in but before started to receive binlog events. |
void |
onDisconnect(BinaryLogClient client)
Called upon disconnect (regardless of the reason). |
void |
onEvent(Event event)
|
void |
onEventDeserializationFailure(BinaryLogClient client,
Exception ex)
Called in case of failed event deserialization. |
void |
reset()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public BinaryLogClientStatistics()
public BinaryLogClientStatistics(BinaryLogClient binaryLogClient)
| Method Detail |
|---|
public String getLastEvent()
getLastEvent in interface BinaryLogClientStatisticsMXBeanpublic long getSecondsSinceLastEvent()
getSecondsSinceLastEvent in interface BinaryLogClientStatisticsMXBeanpublic long getSecondsBehindMaster()
getSecondsBehindMaster in interface BinaryLogClientStatisticsMXBeanpublic long getTotalNumberOfEventsSeen()
getTotalNumberOfEventsSeen in interface BinaryLogClientStatisticsMXBeanpublic long getNumberOfSkippedEvents()
getNumberOfSkippedEvents in interface BinaryLogClientStatisticsMXBeanpublic long getNumberOfDisconnects()
getNumberOfDisconnects in interface BinaryLogClientStatisticsMXBeanpublic void reset()
reset in interface BinaryLogClientStatisticsMXBeanpublic void onEvent(Event event)
onEvent in interface BinaryLogClient.EventListener
public void onEventDeserializationFailure(BinaryLogClient client,
Exception ex)
BinaryLogClient.LifecycleListener
onEventDeserializationFailure in interface BinaryLogClient.LifecycleListenerpublic void onDisconnect(BinaryLogClient client)
BinaryLogClient.LifecycleListener
onDisconnect in interface BinaryLogClient.LifecycleListenerpublic void onConnect(BinaryLogClient client)
BinaryLogClient.LifecycleListener
onConnect in interface BinaryLogClient.LifecycleListener
public void onCommunicationFailure(BinaryLogClient client,
Exception ex)
BinaryLogClient.LifecycleListenerBinaryLogClient.LifecycleListener.onDisconnect(BinaryLogClient)) in case of
communication failure.
onCommunicationFailure in interface BinaryLogClient.LifecycleListenerprotected long getCurrentTimeMillis()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||