- <init>
Create a new ActiveStandbyElector object
The elector is created by providing to it the Zookeeper co
- ensureParentZNode
Utility function to ensure that the configured base znode exists. This
recursively creates the znode
- joinElection
To participate in election, the app will call joinElection. The result will be
notified by a callbac
- quitElection
Any service instance can drop out of the election by calling quitElection.
This will lose any leader
- terminateConnection
- getActiveData
get data set by the active leader
- parentZNodeExists
- becomeStandby
- clearParentZNode
Clear all of the state held within the parent ZNode. This recursively deletes
everything within the
- createConnection
- createLockNodeAsync
- createWithRetries