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 boolean
isAlive()
void
onCommunicationFailure(com.github.shyiko.mysql.binlog.BinaryLogClient binaryLogClient, Exception e)
void
onConnect(com.github.shyiko.mysql.binlog.BinaryLogClient binaryLogClient)
void
onDisconnect(com.github.shyiko.mysql.binlog.BinaryLogClient binaryLogClient)
void
onEvent(com.github.shyiko.mysql.binlog.event.Event event)
void
onEventDeserializationFailure(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:
onEvent
in interfacecom.github.shyiko.mysql.binlog.BinaryLogClient.EventListener
-
onConnect
public void onConnect(com.github.shyiko.mysql.binlog.BinaryLogClient binaryLogClient)
- Specified by:
onConnect
in interfacecom.github.shyiko.mysql.binlog.BinaryLogClient.LifecycleListener
-
onCommunicationFailure
public void onCommunicationFailure(com.github.shyiko.mysql.binlog.BinaryLogClient binaryLogClient, Exception e)
- Specified by:
onCommunicationFailure
in interfacecom.github.shyiko.mysql.binlog.BinaryLogClient.LifecycleListener
-
onEventDeserializationFailure
public void onEventDeserializationFailure(com.github.shyiko.mysql.binlog.BinaryLogClient binaryLogClient, Exception e)
- Specified by:
onEventDeserializationFailure
in interfacecom.github.shyiko.mysql.binlog.BinaryLogClient.LifecycleListener
-
onDisconnect
public void onDisconnect(com.github.shyiko.mysql.binlog.BinaryLogClient binaryLogClient)
- Specified by:
onDisconnect
in interfacecom.github.shyiko.mysql.binlog.BinaryLogClient.LifecycleListener
-
-