- All Implemented Interfaces:
- Closeable, AutoCloseable
public class ZookeeperMasterDetector
extends Object
implements Closeable
Mesos master detector. Watches all the child nodes of the mesos directory in zookeeper, loads all the child nodes when anything
changes and uses the numerically lowest as master.
Uses the event bus to decouple event submission from event execution, otherwise caller threads might end up running large swaths
of watcher specific codes (especially when the master changes). May be overkill but it seems to be the right thing.