当前位置: 首页>>代码示例>>C++>>正文


C++ OptionSection::helpString方法代码示例

本文整理汇总了C++中moe::OptionSection::helpString方法的典型用法代码示例。如果您正苦于以下问题:C++ OptionSection::helpString方法的具体用法?C++ OptionSection::helpString怎么用?C++ OptionSection::helpString使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在moe::OptionSection的用法示例。


在下文中一共展示了OptionSection::helpString方法的10个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。

示例1: printMongoStatHelp

 void printMongoStatHelp(const moe::OptionSection options, std::ostream* out) {
     *out << "View live MongoDB performance statistics.\n" << std::endl;
     *out << "usage: mongostat [options] [sleep time]" << std::endl;
     *out << "sleep time: time to wait (in seconds) between calls" << std::endl;
     *out << options.helpString();
     *out << "\n";
     *out << " Fields\n";
     *out << "   inserts  \t- # of inserts per second (* means replicated op)\n";
     *out << "   query    \t- # of queries per second\n";
     *out << "   update   \t- # of updates per second\n";
     *out << "   delete   \t- # of deletes per second\n";
     *out << "   getmore  \t- # of get mores (cursor batch) per second\n";
     *out << "   command  \t- # of commands per second, on a slave its local|replicated\n";
     *out << "   flushes  \t- # of fsync flushes per second\n";
     *out << "   mapped   \t- amount of data mmaped (total data size) megabytes\n";
     *out << "   vsize    \t- virtual size of process in megabytes\n";
     *out << "   res      \t- resident size of process in megabytes\n";
     *out << "   faults   \t- # of pages faults per sec\n";
     *out << "   locked   \t- name of and percent time for most locked database\n";
     *out << "   idx miss \t- percent of btree page misses (sampled)\n";
     *out << "   qr|qw    \t- queue lengths for clients waiting (read|write)\n";
     *out << "   ar|aw    \t- active clients (read|write)\n";
     *out << "   netIn    \t- network traffic in - bytes\n";
     *out << "   netOut   \t- network traffic out - bytes\n";
     *out << "   conn     \t- number of open connections\n";
     *out << "   set      \t- replica set name\n";
     *out << "   repl     \t- replication type \n";
     *out << "            \t    PRI - primary (master)\n";
     *out << "            \t    SEC - secondary\n";
     *out << "            \t    REC - recovering\n";
     *out << "            \t    UNK - unknown\n";
     *out << "            \t    SLV - slave\n";
     *out << "            \t    RTR - mongos process (\"router\")\n";
     *out << std::flush;
 }
开发者ID:ryannutley,项目名称:mongo,代码行数:35,代码来源:mongostat_options.cpp

示例2: printMongoRestoreHelp

 void printMongoRestoreHelp(const moe::OptionSection options, std::ostream* out) {
     *out << "Import BSON files into MongoDB.\n" << std::endl;
     *out << "usage: mongorestore [options] [directory or filename to restore from]"
          << std::endl;
     *out << options.helpString();
     *out << std::flush;
 }
开发者ID:hipsterbd,项目名称:mongo,代码行数:7,代码来源:mongorestore_options.cpp

示例3: printMongoImportHelp

 void printMongoImportHelp(const moe::OptionSection options, std::ostream* out) {
     *out << "Import CSV, TSV or JSON data into MongoDB.\n" << std::endl;
     *out << "When importing JSON documents, each document must be a separate line of the input file.\n";
     *out << "\nExample:\n";
     *out << "  mongoimport --host myhost --db my_cms --collection docs < mydocfile.json\n" << std::endl;
     *out << options.helpString();
     *out << std::flush;
 }
开发者ID:hipsterbd,项目名称:mongo,代码行数:8,代码来源:mongoimport_options.cpp

示例4: getMongoShellHelp

std::string getMongoShellHelp(StringData name, const moe::OptionSection& options) {
    StringBuilder sb;
    sb << "usage: " << name << " [options] [db address] [file names (ending in .js)]\n"
       << "db address can be:\n"
       << "  foo                   foo database on local machine\n"
       << "  192.168.0.5/foo       foo database on 192.168.0.5 machine\n"
       << "  192.168.0.5:9999/foo  foo database on 192.168.0.5 machine on port 9999\n"
       << options.helpString() << "\n"
       << "file names: a list of files to run. files have to end in .js and will exit after "
       << "unless --shell is specified";
    return sb.str();
}
开发者ID:Machyne,项目名称:mongo,代码行数:12,代码来源:shell_options.cpp

示例5: printMongoFilesHelp

 void printMongoFilesHelp(const moe::OptionSection options, std::ostream* out) {
     *out << "Browse and modify a GridFS filesystem.\n" << std::endl;
     *out << "usage: mongofiles [options] command [gridfs filename]" << std::endl;
     *out << "command:" << std::endl;
     *out << "  one of (list|search|put|get)" << std::endl;
     *out << "  list - list all files.  'gridfs filename' is an optional prefix " << std::endl;
     *out << "         which listed filenames must begin with." << std::endl;
     *out << "  search - search all files. 'gridfs filename' is a substring " << std::endl;
     *out << "           which listed filenames must contain." << std::endl;
     *out << "  put - add a file with filename 'gridfs filename'" << std::endl;
     *out << "  get - get a file with filename 'gridfs filename'" << std::endl;
     *out << "  delete - delete all files with filename 'gridfs filename'" << std::endl;
     *out << options.helpString();
     *out << std::flush;
 }
开发者ID:hipsterbd,项目名称:mongo,代码行数:15,代码来源:mongofiles_options.cpp

示例6: printMongodHelp

void printMongodHelp(const moe::OptionSection& options) {
    std::cout << options.helpString() << std::endl;
};
开发者ID:zhihuiFan,项目名称:mongo,代码行数:3,代码来源:mongod_options.cpp

示例7: printMongoExportHelp

 void printMongoExportHelp(const moe::OptionSection options, std::ostream* out) {
     *out << "Export MongoDB data to CSV, TSV or JSON files.\n" << std::endl;
     *out << options.helpString();
     *out << std::flush;
 }
开发者ID:ryannutley,项目名称:mongo,代码行数:5,代码来源:mongoexport_options.cpp

示例8: getTestFrameworkHelp

 std::string getTestFrameworkHelp(const StringData& name, const moe::OptionSection& options) {
     StringBuilder sb;
     sb << "usage: " << name << " [options] [suite]...\n"
         << options.helpString() << "suite: run the specified test suite(s) only\n";
     return sb.str();
 }
开发者ID:AtomRong,项目名称:mongo,代码行数:6,代码来源:framework_options.cpp

示例9: printMongoOplogHelp

 void printMongoOplogHelp(const moe::OptionSection options, std::ostream* out) {
     *out << "Pull and replay a remote MongoDB oplog.\n" << std::endl;
     *out << options.helpString();
     *out << std::flush;
 }
开发者ID:hipsterbd,项目名称:mongo,代码行数:5,代码来源:mongooplog_options.cpp

示例10: printBSONDumpHelp

 void printBSONDumpHelp(const moe::OptionSection options, std::ostream* out) {
     *out << "Display BSON objects in a data file.\n" << std::endl;
     *out << "usage: bsondump [options] <bson filename>" << std::endl;
     *out << options.helpString();
     *out << std::flush;
 }
开发者ID:hipsterbd,项目名称:mongo,代码行数:6,代码来源:bsondump_options.cpp


注:本文中的moe::OptionSection::helpString方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。