17 #ifndef __MASTER_DETECTOR_ZOOKEEPER_HPP__
18 #define __MASTER_DETECTOR_ZOOKEEPER_HPP__
41 class ZooKeeperMasterDetectorProcess;
65 ZooKeeperMasterDetectorProcess* process;
72 #endif // __MASTER_DETECTOR_ZOOKEEPER_HPP__
virtual ~ZooKeeperMasterDetector()
virtual process::Future< Option< MasterInfo > > detect(const Option< MasterInfo > &previous=None())
Returns MasterInfo after an election has occurred and the elected master is different than that speci...
Definition: duration.hpp:32
Definition: zookeeper.hpp:44
const Duration MASTER_DETECTOR_ZK_SESSION_TIMEOUT
An abstraction of a Master detector which can be used to detect the leading master from a group...
Definition: detector.hpp:38
ZooKeeperMasterDetector(const zookeeper::URL &url, const Duration &sessionTimeout=MASTER_DETECTOR_ZK_SESSION_TIMEOUT)
Definition: future.hpp:57