17 #ifndef __MASTER_DETECTOR_ZOOKEEPER_HPP__ 18 #define __MASTER_DETECTOR_ZOOKEEPER_HPP__ 41 class ZooKeeperMasterDetectorProcess;
51 const Duration& sessionTimeout = MASTER_DETECTOR_ZK_SESSION_TIMEOUT);
65 ZooKeeperMasterDetectorProcess*
process;
72 #endif // __MASTER_DETECTOR_ZOOKEEPER_HPP__
Definition: master.hpp:27
Definition: duration.hpp:32
~ZooKeeperMasterDetector() override
Definition: zookeeper.hpp:44
const Duration MASTER_DETECTOR_ZK_SESSION_TIMEOUT
Definition: executor.hpp:48
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)
process::Future< Option< MasterInfo > > detect(const Option< MasterInfo > &previous=None()) override
Returns MasterInfo after an election has occurred and the elected master is different than that speci...
Definition: future.hpp:58