mongo::ConfigServer Class Reference

#include <config.h>

Inheritance diagram for mongo::ConfigServer:
Inheritance graph
[legend]

List of all members.

Public Member Functions

bool allUp (string &errmsg)
bool allUp ()
bool checkConfigServersConsistent (string &errmsg, int tries=4) const
int checkConfigVersion (bool upgrade)
 ConfigServer ()
int dbConfigVersion (DBClientBase &conn)
int dbConfigVersion ()
ConnectionString getConnectionString () const
bool init (string s)
bool init (vector< string > configHosts)
void logChange (const string &what, const string &ns, const BSONObj &detail=BSONObj())
virtual string modelServer ()
bool ok (bool checkConsistency=false)
void reloadSettings ()
void replicaSetChange (const ReplicaSetMonitor *monitor)
 ~ConfigServer ()

Static Public Attributes

static int VERSION

Private Member Functions

string getHost (string name, bool withPort)

Private Attributes

vector< string > _config

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 (  ) 
ConnectionString mongo::ConfigServer::getConnectionString (  )  const [inline]

Definition at line 229 of file config.h.

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]

Definition at line 193 of file config.h.

bool mongo::ConfigServer::ok ( bool  checkConsistency = false  ) 
void mongo::ConfigServer::reloadSettings (  ) 
void mongo::ConfigServer::replicaSetChange ( const ReplicaSetMonitor monitor  ) 

Member Data Documentation

vector<string> mongo::ConfigServer::_config [private]

Definition at line 246 of file config.h.

Definition at line 235 of file config.h.


The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines


mongodb
Author(s): Nate Koenig
autogenerated on Fri Jan 11 12:15:54 2013