Package com.zendesk.maxwell.replication
Class BinlogConnectorLivenessMonitor
- java.lang.Object
-
- com.zendesk.maxwell.replication.BinlogConnectorLivenessMonitor
-
- All Implemented Interfaces:
com.github.shyiko.mysql.binlog.BinaryLogClient.EventListener,com.github.shyiko.mysql.binlog.BinaryLogClient.LifecycleListener
public class BinlogConnectorLivenessMonitor extends Object implements com.github.shyiko.mysql.binlog.BinaryLogClient.EventListener, com.github.shyiko.mysql.binlog.BinaryLogClient.LifecycleListener
-
-
Constructor Summary
Constructors Constructor Description BinlogConnectorLivenessMonitor(com.github.shyiko.mysql.binlog.BinaryLogClient client)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanisAlive()voidonCommunicationFailure(com.github.shyiko.mysql.binlog.BinaryLogClient binaryLogClient, Exception e)voidonConnect(com.github.shyiko.mysql.binlog.BinaryLogClient binaryLogClient)voidonDisconnect(com.github.shyiko.mysql.binlog.BinaryLogClient binaryLogClient)voidonEvent(com.github.shyiko.mysql.binlog.event.Event event)voidonEventDeserializationFailure(com.github.shyiko.mysql.binlog.BinaryLogClient binaryLogClient, Exception e)
-
-
-
Method Detail
-
isAlive
public boolean isAlive()
-
onEvent
public void onEvent(com.github.shyiko.mysql.binlog.event.Event event)
- Specified by:
onEventin interfacecom.github.shyiko.mysql.binlog.BinaryLogClient.EventListener
-
onConnect
public void onConnect(com.github.shyiko.mysql.binlog.BinaryLogClient binaryLogClient)
- Specified by:
onConnectin interfacecom.github.shyiko.mysql.binlog.BinaryLogClient.LifecycleListener
-
onCommunicationFailure
public void onCommunicationFailure(com.github.shyiko.mysql.binlog.BinaryLogClient binaryLogClient, Exception e)- Specified by:
onCommunicationFailurein interfacecom.github.shyiko.mysql.binlog.BinaryLogClient.LifecycleListener
-
onEventDeserializationFailure
public void onEventDeserializationFailure(com.github.shyiko.mysql.binlog.BinaryLogClient binaryLogClient, Exception e)- Specified by:
onEventDeserializationFailurein interfacecom.github.shyiko.mysql.binlog.BinaryLogClient.LifecycleListener
-
onDisconnect
public void onDisconnect(com.github.shyiko.mysql.binlog.BinaryLogClient binaryLogClient)
- Specified by:
onDisconnectin interfacecom.github.shyiko.mysql.binlog.BinaryLogClient.LifecycleListener
-
-