LogCabin
|
A list of servers in which a simple majority constitutes a quorum. More...
Public Member Functions | |
SimpleConfiguration () | |
~SimpleConfiguration () | |
bool | all (const Predicate &predicate) const |
bool | contains (ServerRef server) const |
void | forEach (const SideEffect &sideEffect) |
uint64_t | min (const GetValue &getValue) const |
bool | quorumAll (const Predicate &predicate) const |
uint64_t | quorumMin (const GetValue &getValue) const |
Public Attributes | |
std::vector< ServerRef > | servers |
A list of servers in which a simple majority constitutes a quorum.
Definition at line 494 of file RaftConsensus.h.
LogCabin::Server::RaftConsensusInternal::Configuration::SimpleConfiguration::SimpleConfiguration | ( | ) |
Definition at line 406 of file RaftConsensus.cc.
LogCabin::Server::RaftConsensusInternal::Configuration::SimpleConfiguration::~SimpleConfiguration | ( | ) |
Definition at line 411 of file RaftConsensus.cc.
bool LogCabin::Server::RaftConsensusInternal::Configuration::SimpleConfiguration::all | ( | const Predicate & | predicate | ) | const |
Definition at line 416 of file RaftConsensus.cc.
bool LogCabin::Server::RaftConsensusInternal::Configuration::SimpleConfiguration::contains | ( | ServerRef | server | ) | const |
Definition at line 426 of file RaftConsensus.cc.
void LogCabin::Server::RaftConsensusInternal::Configuration::SimpleConfiguration::forEach | ( | const SideEffect & | sideEffect | ) |
Definition at line 437 of file RaftConsensus.cc.
uint64_t LogCabin::Server::RaftConsensusInternal::Configuration::SimpleConfiguration::min | ( | const GetValue & | getValue | ) | const |
Definition at line 444 of file RaftConsensus.cc.
bool LogCabin::Server::RaftConsensusInternal::Configuration::SimpleConfiguration::quorumAll | ( | const Predicate & | predicate | ) | const |
Definition at line 455 of file RaftConsensus.cc.
uint64_t LogCabin::Server::RaftConsensusInternal::Configuration::SimpleConfiguration::quorumMin | ( | const GetValue & | getValue | ) | const |
Definition at line 467 of file RaftConsensus.cc.
std::vector<ServerRef> LogCabin::Server::RaftConsensusInternal::Configuration::SimpleConfiguration::servers |
Definition at line 503 of file RaftConsensus.h.