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