#include <standalone.hpp>
mesos::master::contender::StandaloneMasterContender::StandaloneMasterContender |
( |
| ) |
|
|
inline |
mesos::master::contender::StandaloneMasterContender::~StandaloneMasterContender |
( |
| ) |
|
|
override |
Returns a Future<Nothing> once the contender has entered the contest (by obtaining a membership) and an error otherwise.
A failed future is returned if this method is called before initialize(). The inner Future returns Nothing when the contender is out of the contest (i.e. its membership is lost).
This method can be used to contend again after candidacy is obtained (the outer future satisfied), otherwise the future for the pending election is returned. Recontending after candidacy is obtained causes the previous candidacy to be withdrawn.
Implements mesos::master::contender::MasterContender.
void mesos::master::contender::StandaloneMasterContender::initialize |
( |
const MasterInfo & |
masterInfo | ) |
|
|
overridevirtual |
The documentation for this class was generated from the following file: