#include <standalone.hpp>
mesos::master::detector::StandaloneMasterDetector::StandaloneMasterDetector |
( |
| ) |
|
mesos::master::detector::StandaloneMasterDetector::StandaloneMasterDetector |
( |
const MasterInfo & |
leader | ) |
|
|
explicit |
mesos::master::detector::StandaloneMasterDetector::StandaloneMasterDetector |
( |
const process::UPID & |
leader | ) |
|
|
explicit |
mesos::master::detector::StandaloneMasterDetector::~StandaloneMasterDetector |
( |
| ) |
|
|
override |
void mesos::master::detector::StandaloneMasterDetector::appoint |
( |
const Option< MasterInfo > & |
leader | ) |
|
void mesos::master::detector::StandaloneMasterDetector::appoint |
( |
const process::UPID & |
leader | ) |
|
Returns MasterInfo after an election has occurred and the elected master is different than that specified (if any), or NONE if an election occurs and no master is elected (e.g., all masters are lost).
A failed future is returned if the detector is unable to detect the leading master due to a non-retryable error. Note that the detector transparently tries to recover from retryable errors. The future is never discarded unless it stays pending when the detector destructs.
The 'previous' result (if any) should be passed back if this method is called repeatedly so the detector only returns when it gets a different result.
Implements mesos::master::detector::MasterDetector.
The documentation for this class was generated from the following file: