#include <cursors.h>
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 |
Definition at line 65 of file cursors.h.
| typedef map<long long,string> mongo::CursorCache::MapNormal |
| typedef map<long long,ShardedClientCursorPtr> mongo::CursorCache::MapSharded |
| mongo::CursorCache::CursorCache | ( | ) |
| mongo::CursorCache::~CursorCache | ( | ) |
| 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 |
| 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 | |||
| ) |
MapSharded mongo::CursorCache::_cursors [private] |
mongo::mutex mongo::CursorCache::_mutex [mutable, private] |
int mongo::CursorCache::_myLogLevel [static, private] |
MapNormal mongo::CursorCache::_refs [private] |
long long mongo::CursorCache::_shardedTotal [private] |
long long mongo::CursorCache::TIMEOUT [static] |