17 #ifndef __MESOS_MASTER_CONTENDER_HPP__ 18 #define __MESOS_MASTER_CONTENDER_HPP__ 75 virtual void initialize(
const MasterInfo& masterInfo) = 0;
98 #endif // __MESOS_MASTER_CONTENDER_HPP__
Definition: master.hpp:27
virtual ~MasterContender()=0
Note that the contender's membership, if obtained, is scheduled to be cancelled during destruction...
An abstraction for contending to be a leading master.
Definition: contender.hpp:40
virtual void initialize(const MasterInfo &masterInfo)=0
Initializes the contender with the MasterInfo of the master it contends on behalf of...
virtual process::Future< process::Future< Nothing > > contend()=0
Returns a Future<Nothing> once the contender has entered the contest (by obtaining a membership) and ...
static Try< MasterContender * > create(const Option< std::string > &zk, const Option< std::string > &masterContenderModule=None(), const Option< Duration > &zkSessionTimeout=None())
Creates a master contender.
Definition: future.hpp:58