17 #ifndef __MESOS_MASTER_DETECTOR_HPP__
18 #define __MESOS_MASTER_DETECTOR_HPP__
87 #endif // __MESOS_MASTER_DETECTOR_HPP__
static Try< MasterDetector * > create(const Option< std::string > &zk, const Option< std::string > &masterDetectorModule=None(), const Option< Duration > &zkSessionTimeout=None())
Creates a master detector.
virtual process::Future< Option< MasterInfo > > detect(const Option< MasterInfo > &previous=None())=0
Returns MasterInfo after an election has occurred and the elected master is different than that speci...
virtual ~MasterDetector()=0
An abstraction of a Master detector which can be used to detect the leading master from a group...
Definition: detector.hpp:38
Definition: future.hpp:57