mongo::CmdLine Struct Reference
#include <cmdline.h>
List of all members.
Public Types |
enum | { DefaultDBPort = 27017,
ConfigServerPort = 27019,
ShardServerPort = 27018
} |
enum | {
DurDumpJournal = 1,
DurScanOnly = 2,
DurRecoverOnly = 4,
DurParanoid = 8,
DurAlwaysCommit = 16
} |
Public Member Functions |
| CmdLine () |
bool | isDefaultPort () const |
string | ourSetName () const |
bool | usingReplSets () const |
Static Public Member Functions |
static void | addGlobalOptions (boost::program_options::options_description &general, boost::program_options::options_description &hidden) |
static void | addWindowsOptions (boost::program_options::options_description &windows, boost::program_options::options_description &hidden) |
static bool | store (int argc, char **argv, boost::program_options::options_description &visible, boost::program_options::options_description &hidden, boost::program_options::positional_options_description &positional, boost::program_options::variables_map &output) |
Public Attributes |
string | _replSet |
string | binaryName |
string | bind_ip |
bool | cpu |
string | cwd |
int | defaultProfile |
bool | dur |
int | durOptions |
bool | jsonp |
bool | moveParanoia |
bool | noTableScan |
string | only |
long long | oplogSize |
int | port |
bool | prealloc |
int | pretouch |
bool | quiet |
bool | quota |
int | quotaFiles |
bool | rest |
int | slowMS |
bool | smallfiles |
string | socket |
string | source |
double | syncdelay |
Detailed Description
Definition at line 27 of file cmdline.h.
Member Enumeration Documentation
- Enumerator:
DefaultDBPort |
|
ConfigServerPort |
|
ShardServerPort |
|
Definition at line 45 of file cmdline.h.
--durOptions 7 dump journal and terminate without doing anything further --durOptions 4 recover and terminate without listening
- Enumerator:
DurDumpJournal |
|
DurScanOnly |
|
DurRecoverOnly |
|
DurParanoid |
|
DurAlwaysCommit |
|
Definition at line 84 of file cmdline.h.
Constructor & Destructor Documentation
mongo::CmdLine::CmdLine |
( |
|
) |
[inline] |
Member Function Documentation
static void mongo::CmdLine::addGlobalOptions |
( |
boost::program_options::options_description & |
general, |
|
|
boost::program_options::options_description & |
hidden | |
|
) |
| | [static] |
static void mongo::CmdLine::addWindowsOptions |
( |
boost::program_options::options_description & |
windows, |
|
|
boost::program_options::options_description & |
hidden | |
|
) |
| | [static] |
bool mongo::CmdLine::isDefaultPort |
( |
|
) |
const [inline] |
string mongo::CmdLine::ourSetName |
( |
|
) |
const [inline] |
static bool mongo::CmdLine::store |
( |
int |
argc, |
|
|
char ** |
argv, |
|
|
boost::program_options::options_description & |
visible, |
|
|
boost::program_options::options_description & |
hidden, |
|
|
boost::program_options::positional_options_description & |
positional, |
|
|
boost::program_options::variables_map & |
output | |
|
) |
| | [static] |
- Returns:
- true if should run program, false if should exit
bool mongo::CmdLine::usingReplSets |
( |
|
) |
const [inline] |
Member Data Documentation
The documentation for this struct was generated from the following file: