summaryrefslogtreecommitdiff
path: root/src/mongo/db/commands.h
diff options
context:
space:
mode:
authorKaloian Manassiev <kaloian.manassiev@mongodb.com>2016-03-29 18:00:48 -0400
committerKaloian Manassiev <kaloian.manassiev@mongodb.com>2016-03-30 13:22:33 -0400
commit165f6ec707de7ec1e4e3f37e60c317221f6a26d0 (patch)
treee2604536cb91841e2b77cf09b3af71629e9140cc /src/mongo/db/commands.h
parent4d17fceb1d3ec9e231a601066944aed51b702b45 (diff)
downloadmongo-165f6ec707de7ec1e4e3f37e60c317221f6a26d0.tar.gz
SERVER-23429 Get rid of Command::htmlHelp and _webCommands
Diffstat (limited to 'src/mongo/db/commands.h')
-rw-r--r--src/mongo/db/commands.h17
1 files changed, 10 insertions, 7 deletions
diff --git a/src/mongo/db/commands.h b/src/mongo/db/commands.h
index 5d26450a01d..f04f453b24e 100644
--- a/src/mongo/db/commands.h
+++ b/src/mongo/db/commands.h
@@ -96,6 +96,13 @@ public:
return _name;
}
+ /**
+ * Returns whether this command is visible in the Web UI.
+ */
+ bool isWebUI() const {
+ return _webUI;
+ }
+
// Return the namespace for the command. If the first field in 'cmdObj' is of type
// mongo::String, then that field is interpreted as the collection name, and is
// appended to 'dbname' after a '.' character. If the first field is not of type
@@ -139,8 +146,6 @@ public:
return false;
}
- void htmlHelp(std::stringstream&) const;
-
/* Like adminOnly, but even stricter: we must either be authenticated for admin db,
or, if running without auth, on the local interface. Used for things which
are so major that remote invocation may not make sense (e.g., shutdownServer).
@@ -266,7 +271,6 @@ protected:
static CommandMap* _commands;
static CommandMap* _commandsByBestName;
- static CommandMap* _webCommands;
// Counters for how many times this command has been executed and failed
Counter64 _commandsExecuted;
@@ -277,10 +281,6 @@ public:
return _commandsByBestName;
}
- static const CommandMap* webCommands() {
- return _webCommands;
- }
-
// Counter for unknown commands
static Counter64 unknownCommands;
@@ -444,6 +444,9 @@ private:
// The full name of the command
const std::string _name;
+ // Whether the command is available in the web UI
+ const bool _webUI;
+
// Pointers to hold the metrics tree references
ServerStatusMetricField<Counter64> _commandsExecutedMetric;
ServerStatusMetricField<Counter64> _commandsFailedMetric;