mongo::Client Class Reference

#include <client.h>

List of all members.

Classes

class  Context
class  GodScope

Public Member Functions

void appendLastOp (BSONObjBuilder &b) const
string clientAddress (bool includePort=false) const
CurOpcurop () const
Databasedatabase () const
const char * desc () const
AuthenticationInfogetAuthenticationInfo ()
ConnectionId getConnectionId () const
ContextgetContext () const
BSONObj getHandshake () const
ReplTime getLastOp () const
BSONObj getRemoteID () const
void gotHandshake (const BSONObj &o)
void iAmSyncThread ()
bool isAdmin ()
bool isGod () const
bool isSyncThread () const
const char * ns () const
MessagingPortport () const
void setLastOp (ReplTime op)
bool shutdown ()
string toString () const
 ~Client ()

Static Public Member Functions

static int getActiveClientCount (int &writers, int &readers)
static ClientinitThread (const char *desc, MessagingPort *mp=0)
static int recommendedYieldMicros (int *writers=0, int *readers=0)

Static Public Attributes

static set< Client * > clients
static mongo::mutex clientsMutex
static ClientsyncThread

Private Member Functions

 Client (const char *desc, MessagingPort *p=0)

Private Attributes

AuthenticationInfo _ai
ConnectionId _connectionId
Context_context
CurOp_curOp
const char * _desc
bool _god
BSONObj _handshake
ReplTime _lastOp
MessagingPort *const _mp
BSONObj _remoteId
bool _shutdown

Friends

class CurOp

Detailed Description

Definition at line 47 of file db/client.h.


Constructor & Destructor Documentation

mongo::Client::~Client (  ) 
mongo::Client::Client ( const char *  desc,
MessagingPort p = 0 
) [private]

Member Function Documentation

void mongo::Client::appendLastOp ( BSONObjBuilder b  )  const
string mongo::Client::clientAddress ( bool  includePort = false  )  const
CurOp* mongo::Client::curop (  )  const [inline]

Definition at line 83 of file db/client.h.

Database* mongo::Client::database (  )  const [inline]

Definition at line 85 of file db/client.h.

const char* mongo::Client::desc (  )  const [inline]

Definition at line 87 of file db/client.h.

static int mongo::Client::getActiveClientCount ( int &  writers,
int &  readers 
) [static]
AuthenticationInfo* mongo::Client::getAuthenticationInfo (  )  [inline]

Definition at line 81 of file db/client.h.

ConnectionId mongo::Client::getConnectionId (  )  const [inline]

Definition at line 102 of file db/client.h.

Context* mongo::Client::getContext (  )  const [inline]

Definition at line 84 of file db/client.h.

BSONObj mongo::Client::getHandshake (  )  const [inline]

Definition at line 98 of file db/client.h.

ReplTime mongo::Client::getLastOp (  )  const [inline]

Definition at line 89 of file db/client.h.

BSONObj mongo::Client::getRemoteID (  )  const [inline]

Definition at line 97 of file db/client.h.

void mongo::Client::gotHandshake ( const BSONObj o  ) 
void mongo::Client::iAmSyncThread (  )  [inline]

Definition at line 73 of file db/client.h.

static Client& mongo::Client::initThread ( const char *  desc,
MessagingPort mp = 0 
) [static]
bool mongo::Client::isAdmin (  )  [inline]

Definition at line 82 of file db/client.h.

bool mongo::Client::isGod (  )  const [inline]

Definition at line 94 of file db/client.h.

bool mongo::Client::isSyncThread (  )  const [inline]

Definition at line 77 of file db/client.h.

const char* mongo::Client::ns (  )  const [inline]

Definition at line 86 of file db/client.h.

MessagingPort* mongo::Client::port (  )  const [inline]

Definition at line 100 of file db/client.h.

static int mongo::Client::recommendedYieldMicros ( int *  writers = 0,
int *  readers = 0 
) [static]
void mongo::Client::setLastOp ( ReplTime  op  )  [inline]

Definition at line 88 of file db/client.h.

bool mongo::Client::shutdown (  ) 
string mongo::Client::toString (  )  const

Friends And Related Function Documentation

friend class CurOp [friend]

Definition at line 119 of file db/client.h.


Member Data Documentation

Definition at line 111 of file db/client.h.

Definition at line 105 of file db/client.h.

Definition at line 107 of file db/client.h.

Definition at line 106 of file db/client.h.

const char* mongo::Client::_desc [private]

Definition at line 109 of file db/client.h.

bool mongo::Client::_god [private]

Definition at line 110 of file db/client.h.

Definition at line 113 of file db/client.h.

Definition at line 112 of file db/client.h.

Definition at line 115 of file db/client.h.

Definition at line 114 of file db/client.h.

bool mongo::Client::_shutdown [private]

Definition at line 108 of file db/client.h.

Definition at line 52 of file db/client.h.

Definition at line 49 of file db/client.h.

Definition at line 56 of file db/client.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