mongo::CursorCache Class Reference

#include <cursors.h>

List of all members.

Public Types

typedef map< long long, string > MapNormal
typedef map< long long,
ShardedClientCursorPtr
MapSharded

Public Member Functions

void appendInfo (BSONObjBuilder &result) const
 CursorCache ()
void doTimeouts ()
long long genId ()
ShardedClientCursorPtr get (long long id) const
string getRef (long long id) const
void gotKillCursors (Message &m)
void remove (long long id)
void startTimeoutThread ()
void store (ShardedClientCursorPtr cursor)
void storeRef (const string &server, long long id)
 ~CursorCache ()

Static Public Attributes

static long long TIMEOUT

Private Attributes

MapSharded _cursors
mongo::mutex _mutex
MapNormal _refs
long long _shardedTotal

Static Private Attributes

static int _myLogLevel

Detailed Description

Definition at line 65 of file cursors.h.


Member Typedef Documentation

typedef map<long long,string> mongo::CursorCache::MapNormal

Definition at line 71 of file cursors.h.

Definition at line 70 of file cursors.h.


Constructor & Destructor Documentation

mongo::CursorCache::CursorCache (  ) 
mongo::CursorCache::~CursorCache (  ) 

Member Function Documentation

void mongo::CursorCache::appendInfo ( BSONObjBuilder result  )  const
void mongo::CursorCache::doTimeouts (  ) 
long long mongo::CursorCache::genId (  ) 
ShardedClientCursorPtr mongo::CursorCache::get ( long long  id  )  const
string mongo::CursorCache::getRef ( long long  id  )  const
Returns:
the server for id or ""
void mongo::CursorCache::gotKillCursors ( Message m  ) 
void mongo::CursorCache::remove ( long long  id  ) 
void mongo::CursorCache::startTimeoutThread (  ) 
void mongo::CursorCache::store ( ShardedClientCursorPtr  cursor  ) 
void mongo::CursorCache::storeRef ( const string &  server,
long long  id 
)

Member Data Documentation

Definition at line 96 of file cursors.h.

Definition at line 94 of file cursors.h.

int mongo::CursorCache::_myLogLevel [static, private]

Definition at line 101 of file cursors.h.

Definition at line 97 of file cursors.h.

long long mongo::CursorCache::_shardedTotal [private]

Definition at line 99 of file cursors.h.

long long mongo::CursorCache::TIMEOUT [static]

Definition at line 68 of file cursors.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