Listens for ZooKeeper events related to the master address. The node /master will contain the address of the current master. This listener is interested in NodeDeleted and NodeCreated events on /master.
Utilizes {@link ZooKeeperNodeTracker} for zk interactions.
You can get the current master via {@link #getMasterAddress()} or via{@link #getMasterAddress(ZooKeeperWatcher)} if you do not have a runninginstance of this Tracker in your context.
This class also includes utility for interacting with the master znode, for writing and reading the znode content.
Listens for ZooKeeper events related to the master address. The node /master will contain the address of the current master. This listener is interested in NodeDeleted and NodeCreated events on /master.
Utilizes {@link ZooKeeperNodeTracker} for zk interactions.
You can get the current master via {@link #getMasterAddress()}
Listens for ZooKeeper events related to the master address. The node /master will contain the address of the current master. This listener is interested in NodeDeleted and NodeCreated events on /master.
Utilizes {@link ZooKeeperNodeTracker} for zk interactions.
You can get the current master via {@link #getMasterAddress()} or via{@link #getMasterAddress(ZooKeeperWatcher)} if you do not have a runninginstance of this Tracker in your context.
This class also includes utility for interacting with the master znode, for writing and reading the znode content.
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |