mongo::WriteBackListener Class Reference

#include <writeback_listener.h>

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

List of all members.

Classes

struct  WBStatus

Static Public Member Functions

static void init (const string &host)
static void init (DBClientBase &conn)
static BSONObj waitFor (ConnectionId connectionId, const OID &oid)

Protected Member Functions

string name () const
void run ()
 WriteBackListener (const string &addr)

Private Attributes

string _addr

Static Private Attributes

static map< string,
WriteBackListener * > 
_cache
static mongo::mutex _cacheLock
static set< string > _seenSets
static map< ConnectionId,
WBStatus
_seenWritebacks
static mongo::mutex _seenWritebacksLock

Detailed Description

Definition at line 36 of file writeback_listener.h.


Constructor & Destructor Documentation

mongo::WriteBackListener::WriteBackListener ( const string &  addr  )  [protected]

Member Function Documentation

static void mongo::WriteBackListener::init ( const string &  host  )  [static]
static void mongo::WriteBackListener::init ( DBClientBase conn  )  [static]
string mongo::WriteBackListener::name (  )  const [inline, protected, virtual]

Implements mongo::BackgroundJob.

Definition at line 46 of file writeback_listener.h.

void mongo::WriteBackListener::run (  )  [protected, virtual]

define this to do your work. after this returns, state is set to done. after this returns, deleted if deleteSelf true.

NOTE: if run() throws, the exception will be caught within 'this' object and will ultimately lead to the BackgroundJob's thread being finished, as if run() returned.

Implements mongo::BackgroundJob.

static BSONObj mongo::WriteBackListener::waitFor ( ConnectionId  connectionId,
const OID oid 
) [static]

Member Data Documentation

Definition at line 50 of file writeback_listener.h.

map<string,WriteBackListener*> mongo::WriteBackListener::_cache [static, private]

Definition at line 53 of file writeback_listener.h.

Definition at line 52 of file writeback_listener.h.

set<string> mongo::WriteBackListener::_seenSets [static, private]

Definition at line 54 of file writeback_listener.h.

Definition at line 62 of file writeback_listener.h.

Definition at line 61 of file writeback_listener.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