mongo::MongoFile Class Reference
#include <mmap.h>
List of all members.
Detailed Description
Definition at line 25 of file mmap.h.
Member Enumeration Documentation
- Enumerator:
-
Definition at line 36 of file mmap.h.
Constructor & Destructor Documentation
virtual mongo::MongoFile::~MongoFile |
( |
|
) |
[inline, virtual] |
Member Function Documentation
static int mongo::MongoFile::_flushAll |
( |
bool |
sync |
) |
[static, private] |
virtual void mongo::MongoFile::_lock |
( |
|
) |
[inline, protected, virtual] |
virtual void mongo::MongoFile::_unlock |
( |
|
) |
[inline, protected, virtual] |
virtual void mongo::MongoFile::close |
( |
|
) |
[protected, pure virtual] |
static void mongo::MongoFile::closeAllFiles |
( |
stringstream & |
message |
) |
[static] |
void mongo::MongoFile::created |
( |
|
) |
[protected] |
void mongo::MongoFile::destroyed |
( |
|
) |
[protected] |
static bool mongo::MongoFile::exists |
( |
boost::filesystem::path |
p |
) |
[inline, static] |
string mongo::MongoFile::filename |
( |
|
) |
const [inline] |
virtual void mongo::MongoFile::flush |
( |
bool |
sync |
) |
[protected, pure virtual] |
static int mongo::MongoFile::flushAll |
( |
bool |
sync |
) |
[static] |
template<class F >
void mongo::MongoFile::forEach |
( |
F |
p |
) |
[inline, static] |
- Parameters:
-
| fun | is called for each MongoFile. calledl from within a mutex that MongoFile uses. so be careful not to deadlock. |
p is called from within a mutex that MongoFile uses. so be careful not to deadlock.
Definition at line 214 of file mmap.h.
static set<MongoFile*>& mongo::MongoFile::getAllFiles |
( |
|
) |
[inline, static] |
note: you need to be in mmmutex when using this. forEach (above) handles that for you automatically.
Definition at line 48 of file mmap.h.
virtual bool mongo::MongoFile::isMongoMMF |
( |
|
) |
[inline, virtual] |
virtual unsigned long long mongo::MongoFile::length |
( |
|
) |
const [protected, pure virtual] |
static void mongo::MongoFile::markAllWritable |
( |
|
) |
[inline, static] |
virtual Flushable* mongo::MongoFile::prepareFlush |
( |
|
) |
[protected, pure virtual] |
returns a thread safe object that you can call flush on Flushable has to fail nicely if the underlying object gets killed
Implemented in mongo::MemoryMappedFile.
void mongo::MongoFile::setFilename |
( |
string |
fn |
) |
|
static long long mongo::MongoFile::totalMappedLength |
( |
|
) |
[static] |
static void mongo::MongoFile::unmarkAllWritable |
( |
|
) |
[inline, static] |
Member Data Documentation
The documentation for this class was generated from the following file: