mongo::ShardConnection Class Reference

#include <shard.h>

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

List of all members.

Public Member Functions

DBClientBaseconn ()
void done ()
void donotCheckVersion ()
DBClientBaseget ()
string getHost () const
void kill ()
DBClientBaseoperator-> ()
bool runCommand (const string &db, const BSONObj &cmd, BSONObj &res)
bool setVersion ()
 ShardConnection (const string &addr, const string &ns)
 ShardConnection (const Shard &s, const string &ns)
 ShardConnection (const Shard *s, const string &ns)
 ~ShardConnection ()

Static Public Member Functions

static void checkMyConnectionVersions (const string &ns)
static void sync ()

Private Member Functions

void _finishInit ()
void _init ()

Private Attributes

string _addr
DBClientBase_conn
bool _finishedInit
string _ns
bool _setVersion

Detailed Description

Definition at line 214 of file shard.h.


Constructor & Destructor Documentation

mongo::ShardConnection::ShardConnection ( const Shard s,
const string &  ns 
)
mongo::ShardConnection::ShardConnection ( const Shard s,
const string &  ns 
)
mongo::ShardConnection::ShardConnection ( const string &  addr,
const string &  ns 
)
mongo::ShardConnection::~ShardConnection (  ) 

Member Function Documentation

void mongo::ShardConnection::_finishInit (  )  [private]
void mongo::ShardConnection::_init (  )  [private]
static void mongo::ShardConnection::checkMyConnectionVersions ( const string &  ns  )  [static]

checks all of my thread local connections for the version of this ns

DBClientBase& mongo::ShardConnection::conn (  )  [inline]

Definition at line 225 of file shard.h.

void mongo::ShardConnection::done (  )  [virtual]
void mongo::ShardConnection::donotCheckVersion (  )  [inline]

Definition at line 254 of file shard.h.

DBClientBase* mongo::ShardConnection::get (  )  [inline, virtual]

Implements mongo::AScopedConnection.

Definition at line 237 of file shard.h.

string mongo::ShardConnection::getHost (  )  const [inline, virtual]

Implements mongo::AScopedConnection.

Definition at line 243 of file shard.h.

void mongo::ShardConnection::kill (  ) 
DBClientBase* mongo::ShardConnection::operator-> (  )  [inline]

Definition at line 231 of file shard.h.

bool mongo::ShardConnection::runCommand ( const string &  db,
const BSONObj cmd,
BSONObj res 
)

this just passes through excpet it checks for stale configs

bool mongo::ShardConnection::setVersion (  )  [inline]

Definition at line 247 of file shard.h.

static void mongo::ShardConnection::sync (  )  [static]

Member Data Documentation

Definition at line 273 of file shard.h.

Definition at line 275 of file shard.h.

Definition at line 271 of file shard.h.

string mongo::ShardConnection::_ns [private]

Definition at line 274 of file shard.h.

Definition at line 276 of file shard.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:58 2013