MongoDB C++ Driver
legacy-1.1.2
|
Classes | |
struct | Node |
Public Member Functions | |
SetState (StringData name, const std::set< HostAndPort > &seedNodes) | |
seedNodes must not be empty | |
HostAndPort | getMatchingHost (const ReadPreferenceSetting &criteria) const |
Returns a host matching criteria or an empty host if no known host matches. More... | |
Node * | findNode (const HostAndPort &host) |
Returns the Node with the given host, or NULL if no Node has that host. | |
Node * | findOrCreateNode (const HostAndPort &host) |
Returns the Node with the given host, or creates one if no Node has that host. More... | |
void | checkInvariants () const |
Before unlocking, do DEV checkInvariants();. | |
Node* mongo::ReplicaSetMonitor::SetState::findOrCreateNode | ( | const HostAndPort & | host | ) |
HostAndPort mongo::ReplicaSetMonitor::SetState::getMatchingHost | ( | const ReadPreferenceSetting & | criteria | ) | const |
Returns a host matching criteria or an empty host if no known host matches.
Note: Uses only local data and does not go over the network.