TopTool() : Tool( "top" , REMOTE_SERVER , "admin" ) { _sleep = 1; add_hidden_options() ( "sleep" , po::value<int>() , "time to sleep between calls" ) ; addPositionArg( "sleep" , 1 ); _autoreconnect = true; }
Stat() : Tool( "stat" , REMOTE_SERVER , "admin" ) { _http = false; _many = false; add_hidden_options() ( "sleep" , po::value<int>() , "time to sleep between calls" ) ; add_options() ("noheaders", "don't output column names") ("rowcount,n", po::value<int>()->default_value(0), "number of stats lines to print (0 for indefinite)") ("http", "use http instead of raw db connection") ("discover" , "discover nodes and display stats for all" ) ("all" , "all optional fields" ) ; addPositionArg( "sleep" , 1 ); _autoreconnect = true; }