mongo::CurOp Class Reference

#include <curop.h>

List of all members.

Public Member Functions

bool active () const
 CurOp (Client *client, CurOp *wrapped=0)
OpDebugdebug ()
void done ()
int elapsedMillis ()
int elapsedSeconds ()
void ensureStarted ()
void enter (Client::Context *context)
ClientgetClient () const
int getLockType () const
string getMessage () const
const char * getNS () const
int getOp () const
ProgressMetergetProgressMeter ()
string getRemoteString (bool includePort=true)
void gotLock ()
bool haveQuery () const
BSONObj info ()
BSONObj infoNoauth ()
bool isWaitingForLock () const
void kill ()
bool killed () const
void leave (Client::Context *context)
void markCommand ()
AtomicUInt opNum () const
CurOpparent () const
int profileLevel () const
BSONObj query ()
void reset (const SockAddr &remote, int op)
void reset ()
ProgressMetersetMessage (const char *msg, unsigned long long progressMeterTotal=0, int secondsBetween=3)
void setNS (const char *ns)
void setQuery (const BSONObj &query)
bool shouldDBProfile (int ms) const
unsigned long long startTime ()
unsigned long long totalTimeMicros ()
int totalTimeMillis ()
void waitingForLock (int type)
 ~CurOp ()

Private Member Functions

void _reset ()

Private Attributes

bool _active
unsigned long long _checkpoint
Client_client
bool _command
int _dbprofile
OpDebug _debug
unsigned long long _end
volatile bool _killed
int _lockType
ThreadSafeString _message
char _ns [Namespace::MaxNsLen+2]
int _op
AtomicUInt _opNum
ProgressMeter _progressMeter
CachedBSONObj _query
struct SockAddr _remote
unsigned long long _start
bool _waitingForLock
CurOp_wrapped

Static Private Attributes

static AtomicUInt _nextOpNum

Friends

class Client

Detailed Description

Definition at line 133 of file curop.h.


Constructor & Destructor Documentation

mongo::CurOp::CurOp ( Client client,
CurOp wrapped = 0 
) [inline]

Definition at line 26 of file curop-inl.h.

mongo::CurOp::~CurOp (  ) 

Member Function Documentation

void mongo::CurOp::_reset (  )  [inline, private]

Definition at line 296 of file curop.h.

bool mongo::CurOp::active (  )  const [inline]

if this op is running

Definition at line 198 of file curop.h.

OpDebug& mongo::CurOp::debug (  )  [inline]

Definition at line 184 of file curop.h.

void mongo::CurOp::done (  )  [inline]

Definition at line 210 of file curop.h.

int mongo::CurOp::elapsedMillis (  )  [inline]

Definition at line 222 of file curop.h.

int mongo::CurOp::elapsedSeconds (  )  [inline]

Definition at line 227 of file curop.h.

void mongo::CurOp::ensureStarted (  )  [inline]

Definition at line 141 of file curop.h.

void mongo::CurOp::enter ( Client::Context context  )  [inline]

Definition at line 145 of file curop.h.

Client* mongo::CurOp::getClient (  )  const [inline]

Definition at line 231 of file curop.h.

int mongo::CurOp::getLockType (  )  const [inline]

Definition at line 200 of file curop.h.

string mongo::CurOp::getMessage (  )  const [inline]

Definition at line 263 of file curop.h.

const char* mongo::CurOp::getNS (  )  const [inline]

Definition at line 186 of file curop.h.

int mongo::CurOp::getOp (  )  const [inline]

Definition at line 202 of file curop.h.

ProgressMeter& mongo::CurOp::getProgressMeter (  )  [inline]

Definition at line 264 of file curop.h.

string mongo::CurOp::getRemoteString ( bool  includePort = true  )  [inline]

Definition at line 244 of file curop.h.

void mongo::CurOp::gotLock (  )  [inline]

Definition at line 183 of file curop.h.

bool mongo::CurOp::haveQuery (  )  const [inline]

Definition at line 138 of file curop.h.

BSONObj mongo::CurOp::info (  )  [inline]

Definition at line 233 of file curop.h.

BSONObj mongo::CurOp::infoNoauth (  ) 
bool mongo::CurOp::isWaitingForLock (  )  const [inline]

Definition at line 201 of file curop.h.

void mongo::CurOp::kill (  )  [inline]

Definition at line 266 of file curop.h.

bool mongo::CurOp::killed (  )  const [inline]

Definition at line 267 of file curop.h.

void mongo::CurOp::leave ( Client::Context context  )  [inline]

Definition at line 152 of file curop.h.

void mongo::CurOp::markCommand (  )  [inline]

Definition at line 174 of file curop.h.

AtomicUInt mongo::CurOp::opNum (  )  const [inline]

Definition at line 195 of file curop.h.

CurOp* mongo::CurOp::parent (  )  const [inline]

Definition at line 265 of file curop.h.

int mongo::CurOp::profileLevel (  )  const [inline]

Definition at line 185 of file curop.h.

BSONObj mongo::CurOp::query (  )  [inline]

Definition at line 139 of file curop.h.

void mongo::CurOp::reset ( const SockAddr remote,
int  op 
) [inline]

Definition at line 168 of file curop.h.

void mongo::CurOp::reset (  )  [inline]

Definition at line 158 of file curop.h.

ProgressMeter& mongo::CurOp::setMessage ( const char *  msg,
unsigned long long  progressMeterTotal = 0,
int  secondsBetween = 3 
) [inline]

Definition at line 246 of file curop.h.

void mongo::CurOp::setNS ( const char *  ns  )  [inline]

Definition at line 268 of file curop.h.

void mongo::CurOp::setQuery ( const BSONObj query  )  [inline]

Definition at line 229 of file curop.h.

bool mongo::CurOp::shouldDBProfile ( int  ms  )  const [inline]

Definition at line 188 of file curop.h.

unsigned long long mongo::CurOp::startTime (  )  [inline]

micros

Definition at line 205 of file curop.h.

unsigned long long mongo::CurOp::totalTimeMicros (  )  [inline]

Definition at line 215 of file curop.h.

int mongo::CurOp::totalTimeMillis (  )  [inline]

Definition at line 220 of file curop.h.

void mongo::CurOp::waitingForLock ( int  type  )  [inline]

Definition at line 176 of file curop.h.


Friends And Related Function Documentation

friend class Client [friend]

Definition at line 272 of file curop.h.


Member Data Documentation

bool mongo::CurOp::_active [private]

Definition at line 281 of file curop.h.

unsigned long long mongo::CurOp::_checkpoint [private]

Definition at line 279 of file curop.h.

Definition at line 276 of file curop.h.

bool mongo::CurOp::_command [private]

Definition at line 283 of file curop.h.

int mongo::CurOp::_dbprofile [private]

Definition at line 286 of file curop.h.

Definition at line 291 of file curop.h.

unsigned long long mongo::CurOp::_end [private]

Definition at line 280 of file curop.h.

volatile bool mongo::CurOp::_killed [private]

Definition at line 294 of file curop.h.

int mongo::CurOp::_lockType [private]

Definition at line 284 of file curop.h.

Definition at line 292 of file curop.h.

Definition at line 275 of file curop.h.

char mongo::CurOp::_ns[Namespace::MaxNsLen+2] [private]

Definition at line 288 of file curop.h.

int mongo::CurOp::_op [private]

Definition at line 282 of file curop.h.

Definition at line 287 of file curop.h.

Definition at line 293 of file curop.h.

Definition at line 290 of file curop.h.

struct SockAddr mongo::CurOp::_remote [private]

Definition at line 289 of file curop.h.

unsigned long long mongo::CurOp::_start [private]

Definition at line 278 of file curop.h.

Definition at line 285 of file curop.h.

Definition at line 277 of file curop.h.


The documentation for this class was generated from the following files:
 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