mongo::ConfigServer Class Reference
#include <config.h>
List of all members.
Detailed Description
Definition at line 185 of file config.h.
Constructor & Destructor Documentation
mongo::ConfigServer::ConfigServer |
( |
|
) |
|
mongo::ConfigServer::~ConfigServer |
( |
|
) |
|
Member Function Documentation
bool mongo::ConfigServer::allUp |
( |
string & |
errmsg |
) |
|
bool mongo::ConfigServer::allUp |
( |
|
) |
|
bool mongo::ConfigServer::checkConfigServersConsistent |
( |
string & |
errmsg, |
|
|
int |
tries = 4 | |
|
) |
| | const |
check to see if all config servers have the same state will try tries time to make sure not catching in a bad state
int mongo::ConfigServer::checkConfigVersion |
( |
bool |
upgrade |
) |
|
- Returns:
- 0 = ok, otherwise error #
int mongo::ConfigServer::dbConfigVersion |
( |
DBClientBase & |
conn |
) |
|
int mongo::ConfigServer::dbConfigVersion |
( |
|
) |
|
string mongo::ConfigServer::getHost |
( |
string |
name, |
|
|
bool |
withPort | |
|
) |
| | [private] |
bool mongo::ConfigServer::init |
( |
string |
s |
) |
|
bool mongo::ConfigServer::init |
( |
vector< string > |
configHosts |
) |
|
call at startup, this will initiate connection to the grid db
void mongo::ConfigServer::logChange |
( |
const string & |
what, |
|
|
const string & |
ns, |
|
|
const BSONObj & |
detail = BSONObj() | |
|
) |
| | |
Create a metadata change log entry in the config.changelog collection.
- Parameters:
-
| what | e.g. "split" , "migrate" |
| ns | to which collection the metadata change is being applied |
| msg | additional info about the metadata change |
This call is guaranteed never to throw.
virtual string mongo::ConfigServer::modelServer |
( |
|
) |
[inline, virtual] |
bool mongo::ConfigServer::ok |
( |
bool |
checkConsistency = false |
) |
|
void mongo::ConfigServer::reloadSettings |
( |
|
) |
|
Member Data Documentation
The documentation for this class was generated from the following file: