mongo::ReplPair Class Reference

#include <replpair.h>

List of all members.

Public Types

enum  ReplState {
  State_CantArb = -3, State_Confused = -2, State_Negotiating = -1, State_Slave = 0,
  State_Master = 1
}

Public Member Functions

void arbitrate ()
bool dominant (const string &myname)
string getInfo ()
int negotiate (DBClientConnection *conn, string method)
virtual DBClientConnectionnewClientConnection () const
 ReplPair (const char *remoteEnd, const char *arbiter)
void setMaster (int n, const char *_comment="")
void setMasterLocked (int n, const char *_comment="")
virtual ~ReplPair ()

Public Attributes

string arbHost
ThreadSafeString info
string remote
string remoteHost
int remotePort
int state

Detailed Description

Definition at line 41 of file replpair.h.


Member Enumeration Documentation

Enumerator:
State_CantArb 
State_Confused 
State_Negotiating 
State_Slave 
State_Master 

Definition at line 43 of file replpair.h.


Constructor & Destructor Documentation

mongo::ReplPair::ReplPair ( const char *  remoteEnd,
const char *  arbiter 
) [inline]

Definition at line 180 of file replpair.h.

virtual mongo::ReplPair::~ReplPair (  )  [inline, virtual]

Definition at line 75 of file replpair.h.


Member Function Documentation

void mongo::ReplPair::arbitrate (  ) 
bool mongo::ReplPair::dominant ( const string &  myname  )  [inline]

Definition at line 77 of file replpair.h.

string mongo::ReplPair::getInfo (  )  [inline]

Definition at line 59 of file replpair.h.

int mongo::ReplPair::negotiate ( DBClientConnection conn,
string  method 
)
virtual DBClientConnection* mongo::ReplPair::newClientConnection (  )  const [inline, virtual]

Definition at line 97 of file replpair.h.

void mongo::ReplPair::setMaster ( int  n,
const char *  _comment = "" 
)
void mongo::ReplPair::setMasterLocked ( int  n,
const char *  _comment = "" 
) [inline]

Definition at line 83 of file replpair.h.


Member Data Documentation

Definition at line 53 of file replpair.h.

Definition at line 52 of file replpair.h.

Definition at line 56 of file replpair.h.

Definition at line 55 of file replpair.h.

Definition at line 54 of file replpair.h.

Definition at line 51 of file replpair.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