17 #ifndef __MASTER_CONTENDER_ZOOKEEPER_HPP__
18 #define __MASTER_CONTENDER_ZOOKEEPER_HPP__
39 class ZooKeeperMasterContenderProcess;
56 virtual void initialize(
const MasterInfo& masterInfo);
60 ZooKeeperMasterContenderProcess* process;
67 #endif // __MASTER_CONTENDER_ZOOKEEPER_HPP__
Definition: zookeeper.hpp:42
const Duration MASTER_CONTENDER_ZK_SESSION_TIMEOUT
virtual void initialize(const MasterInfo &masterInfo)
Initializes the contender with the MasterInfo of the master it contends on behalf of...
Definition: duration.hpp:32
An abstraction for contending to be a leading master.
Definition: contender.hpp:40
virtual ~ZooKeeperMasterContender()
ZooKeeperMasterContender(const zookeeper::URL &url, const Duration &sessionTimeout=MASTER_CONTENDER_ZK_SESSION_TIMEOUT)
virtual process::Future< process::Future< Nothing > > contend()
Returns a Future<Nothing> once the contender has entered the contest (by obtaining a membership) and ...
Definition: future.hpp:57