Package com.zendesk.maxwell
Class MaxwellHA
- java.lang.Object
-
- com.zendesk.maxwell.MaxwellHA
-
public class MaxwellHA extends Object
Class that joins a jgroups-raft cluster of servers
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidstartHA()Join the raft cluster, starting and stopping Maxwell on elections.
-
-
-
Constructor Detail
-
MaxwellHA
public MaxwellHA(Maxwell maxwell, String jgroupsConf, String raftMemberID, String clientID)
Build a MaxwellHA object- Parameters:
maxwell- The Maxwell instance that will be run when an election is wonjgroupsConf- Path to an xml file that will configure the RAFT clusterraftMemberID- unique ID identifying the raft member in the clusterclientID- The maxwell clientID. Used to create a unique "channel" for the election
-
-