mongo::ReplSetConfig Class Reference

#include <rs_config.h>

List of all members.

Classes

struct  MemberCfg

Public Member Functions

BSONObj asBson () const
void checkRsConfig () const
bool empty () const
bool ok () const
list< HostAndPortotherMemberHostnames () const
 ReplSetConfig (BSONObj cfg)
 ReplSetConfig (const HostAndPort &h)
string saveConfigEverywhere ()
void saveConfigLocally (BSONObj comment)
string toString () const

Static Public Member Functions

static bool legalChange (const ReplSetConfig &old, const ReplSetConfig &n, string &errmsg)

Public Attributes

string _id
BSONObj getLastErrorDefaults
HealthOptions ho
string md5
vector< MemberCfgmembers
int version

Private Types

enum  { EMPTYCONFIG = -2 }

Private Member Functions

void clear ()
void from (BSONObj)

Private Attributes

bool _ok

Detailed Description

Definition at line 31 of file rs_config.h.


Member Enumeration Documentation

anonymous enum [private]
Enumerator:
EMPTYCONFIG 

Definition at line 32 of file rs_config.h.


Constructor & Destructor Documentation

mongo::ReplSetConfig::ReplSetConfig ( const HostAndPort h  ) 
mongo::ReplSetConfig::ReplSetConfig ( BSONObj  cfg  ) 

Member Function Documentation

BSONObj mongo::ReplSetConfig::asBson (  )  const
void mongo::ReplSetConfig::checkRsConfig (  )  const

validate the settings. does not call check() on each member, you have to do that separately.

void mongo::ReplSetConfig::clear (  )  [private]
bool mongo::ReplSetConfig::empty (  )  const [inline]
Returns:
true if could connect, and there is no cfg object there at all

Definition at line 77 of file rs_config.h.

void mongo::ReplSetConfig::from ( BSONObj   )  [private]
static bool mongo::ReplSetConfig::legalChange ( const ReplSetConfig old,
const ReplSetConfig n,
string &  errmsg 
) [static]

check if modification makes sense

bool mongo::ReplSetConfig::ok (  )  const [inline]

Definition at line 41 of file rs_config.h.

list<HostAndPort> mongo::ReplSetConfig::otherMemberHostnames (  )  const
string mongo::ReplSetConfig::saveConfigEverywhere (  ) 
void mongo::ReplSetConfig::saveConfigLocally ( BSONObj  comment  ) 
string mongo::ReplSetConfig::toString (  )  const [inline]

Definition at line 79 of file rs_config.h.


Member Data Documentation

Definition at line 68 of file rs_config.h.

bool mongo::ReplSetConfig::_ok [private]

Definition at line 94 of file rs_config.h.

Definition at line 72 of file rs_config.h.

Definition at line 70 of file rs_config.h.

Definition at line 71 of file rs_config.h.

Definition at line 67 of file rs_config.h.

Definition at line 69 of file rs_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:57 2013