mongo::Shard Class Reference
#include <shard.h>
List of all members.
Detailed Description
Definition at line 34 of file shard.h.
Constructor & Destructor Documentation
mongo::Shard::Shard |
( |
|
) |
[inline] |
mongo::Shard::Shard |
( |
const string & |
name, |
|
|
const string & |
addr, |
|
|
long long |
maxSize = 0 , |
|
|
bool |
isDraining = false | |
|
) |
| | [inline] |
mongo::Shard::Shard |
( |
const string & |
ident |
) |
[inline] |
mongo::Shard::Shard |
( |
const Shard & |
other |
) |
[inline] |
mongo::Shard::Shard |
( |
const Shard * |
other |
) |
[inline] |
Member Function Documentation
void mongo::Shard::_rsInit |
( |
|
) |
[private] |
void mongo::Shard::_setAddr |
( |
const string & |
addr |
) |
[private] |
bool mongo::Shard::containsNode |
( |
const string & |
node |
) |
const |
mostly for replica set retursn true if node is the shard of if the replica set contains node
static void mongo::Shard::getAllShards |
( |
vector< Shard > & |
all |
) |
[static] |
string mongo::Shard::getConnString |
( |
|
) |
const [inline] |
long long mongo::Shard::getMaxSize |
( |
|
) |
const [inline] |
string mongo::Shard::getName |
( |
|
) |
const [inline] |
static bool mongo::Shard::isAShardNode |
( |
const string & |
ident |
) |
[static] |
bool mongo::Shard::isDraining |
( |
|
) |
const [inline] |
static Shard mongo::Shard::make |
( |
const string & |
ident |
) |
[inline, static] |
bool mongo::Shard::ok |
( |
|
) |
const [inline] |
bool mongo::Shard::operator!= |
( |
const string & |
s |
) |
const [inline] |
bool mongo::Shard::operator!= |
( |
const Shard & |
s |
) |
const [inline] |
bool mongo::Shard::operator< |
( |
const Shard & |
o |
) |
const [inline] |
bool mongo::Shard::operator== |
( |
const string & |
s |
) |
const [inline] |
bool mongo::Shard::operator== |
( |
const Shard & |
s |
) |
const [inline] |
current - shard where the chunk/database currently lives in
- Returns:
- the currently emptiest shard, if best then current, or EMPTY
static void mongo::Shard::printShardInfo |
( |
ostream & |
out |
) |
[static] |
static void mongo::Shard::reloadShardInfo |
( |
|
) |
[static] |
static void mongo::Shard::removeShard |
( |
const string & |
name |
) |
[static] |
void mongo::Shard::reset |
( |
const string & |
ident |
) |
|
- Parameters:
-
| ident | either name or address |
BSONObj mongo::Shard::runCommand |
( |
const string & |
db, |
|
|
const BSONObj & |
cmd | |
|
) |
| | const |
BSONObj mongo::Shard::runCommand |
( |
const string & |
db, |
|
|
const string & |
simple | |
|
) |
| | const [inline] |
string mongo::Shard::toString |
( |
|
) |
const [inline] |
Friends And Related Function Documentation
ostream& operator<< |
( |
ostream & |
out, |
|
|
const Shard & |
s | |
|
) |
| | [friend] |
Member Data Documentation
The documentation for this class was generated from the following file: