mongo::DBConfig Class Reference
#include <config.h>
List of all members.
Detailed Description
top level configuration for a database
Definition at line 63 of file config.h.
Member Typedef Documentation
Constructor & Destructor Documentation
mongo::DBConfig::DBConfig |
( |
string |
name |
) |
[inline] |
virtual mongo::DBConfig::~DBConfig |
( |
|
) |
[inline, virtual] |
Member Function Documentation
bool mongo::DBConfig::_dropShardedCollections |
( |
int & |
num, |
|
|
set< Shard > & |
allServers, |
|
|
string & |
errmsg | |
|
) |
| | [protected] |
bool mongo::DBConfig::_isSharded |
( |
const string & |
ns |
) |
[protected] |
bool mongo::DBConfig::_load |
( |
|
) |
[protected] |
bool mongo::DBConfig::_reload |
( |
|
) |
[protected] |
void mongo::DBConfig::_save |
( |
|
) |
[protected] |
bool mongo::DBConfig::dropDatabase |
( |
string & |
errmsg |
) |
|
void mongo::DBConfig::enableSharding |
( |
|
) |
|
void mongo::DBConfig::getAllShards |
( |
set< Shard > & |
shards |
) |
const |
ChunkManagerPtr mongo::DBConfig::getChunkManager |
( |
const string & |
ns, |
|
|
bool |
reload = false | |
|
) |
| | |
string mongo::DBConfig::getName |
( |
|
) |
[inline] |
const Shard& mongo::DBConfig::getPrimary |
( |
|
) |
const [inline] |
const Shard& mongo::DBConfig::getShard |
( |
const string & |
ns |
) |
|
- Returns:
- the correct for shard for the ns if the namespace is sharded, will return NULL
bool mongo::DBConfig::isSharded |
( |
const string & |
ns |
) |
|
- Returns:
- whether or not the 'ns' collection is partitioned
bool mongo::DBConfig::isShardingEnabled |
( |
|
) |
[inline] |
- Returns:
- if anything in this db is partitioned or not
Definition at line 114 of file config.h.
bool mongo::DBConfig::load |
( |
|
) |
|
bool mongo::DBConfig::reload |
( |
|
) |
|
bool mongo::DBConfig::removeSharding |
( |
const string & |
ns |
) |
|
- Returns:
- true if there was sharding info to remove
void mongo::DBConfig::setPrimary |
( |
string |
s |
) |
|
void mongo::DBConfig::unserialize |
( |
const BSONObj & |
from |
) |
|
Member Data Documentation
The documentation for this class was generated from the following file: