#include <client.h>
Classes | |
class | Context |
class | GodScope |
Public Member Functions | |
void | appendLastOp (BSONObjBuilder &b) const |
string | clientAddress (bool includePort=false) const |
CurOp * | curop () const |
Database * | database () const |
const char * | desc () const |
AuthenticationInfo * | getAuthenticationInfo () |
ConnectionId | getConnectionId () const |
Context * | getContext () 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 |
MessagingPort * | port () const |
void | setLastOp (ReplTime op) |
bool | shutdown () |
string | toString () const |
~Client () | |
Static Public Member Functions | |
static int | getActiveClientCount (int &writers, int &readers) |
static Client & | initThread (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 Client * | syncThread |
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 |
Definition at line 47 of file db/client.h.
mongo::Client::~Client | ( | ) |
mongo::Client::Client | ( | const char * | desc, | |
MessagingPort * | p = 0 | |||
) | [private] |
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 |
friend class CurOp [friend] |
Definition at line 119 of file db/client.h.
AuthenticationInfo mongo::Client::_ai [private] |
Definition at line 111 of file db/client.h.
ConnectionId mongo::Client::_connectionId [private] |
Definition at line 105 of file db/client.h.
Context* mongo::Client::_context [private] |
Definition at line 107 of file db/client.h.
CurOp* mongo::Client::_curOp [private] |
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.
BSONObj mongo::Client::_handshake [private] |
Definition at line 113 of file db/client.h.
ReplTime mongo::Client::_lastOp [private] |
Definition at line 112 of file db/client.h.
MessagingPort* const mongo::Client::_mp [private] |
Definition at line 115 of file db/client.h.
BSONObj mongo::Client::_remoteId [private] |
Definition at line 114 of file db/client.h.
bool mongo::Client::_shutdown [private] |
Definition at line 108 of file db/client.h.
set<Client*> mongo::Client::clients [static] |
Definition at line 52 of file db/client.h.
mongo::mutex mongo::Client::clientsMutex [static] |
Definition at line 49 of file db/client.h.
Client* mongo::Client::syncThread [static] |
Definition at line 56 of file db/client.h.