diff options
Diffstat (limited to 'src/lib/process/d_process.h')
-rw-r--r-- | src/lib/process/d_process.h | 26 |
1 files changed, 6 insertions, 20 deletions
diff --git a/src/lib/process/d_process.h b/src/lib/process/d_process.h index ea920e4275..0ab13133d5 100644 --- a/src/lib/process/d_process.h +++ b/src/lib/process/d_process.h @@ -25,6 +25,12 @@ public: isc::Exception(file, line, what) { }; }; +/// @brief String value for the version-get command. +static const std::string VERSION_GET_COMMAND("version-get"); + +/// @brief String value for the build-report command. +static const std::string BUILD_REPORT_COMMAND("build-report"); + /// @brief String value for the shutdown command. static const std::string SHUT_DOWN_COMMAND("shutdown"); @@ -121,26 +127,6 @@ public: configure(isc::data::ConstElementPtr config_set, bool check_only = false) = 0; - /// @brief Processes the given command. - /// - /// This method is called to execute any custom commands supported by the - /// process. This method must not throw, it should catch any processing - /// errors and return a success or failure answer as described below. - /// - /// @param command is a string label representing the command to execute. - /// @param args is a set of arguments (if any) required for the given - /// command. - /// @return an Element that contains the results of command composed - /// of an integer status value: - /// - /// - COMMAND_SUCCESS indicates a command was successful. - /// - COMMAND_ERROR indicates a valid command failed execute. - /// - COMMAND_INVALID indicates a command is not valid. - /// - /// and a string explanation of the outcome. - virtual isc::data::ConstElementPtr command( - const std::string& command, isc::data::ConstElementPtr args) = 0; - /// @brief Destructor virtual ~DProcessBase(){}; |