]> git.ipfire.org Git - thirdparty/kea.git/commitdiff
[5078] Address second round of review comments.
authorMarcin Siodelski <marcin@isc.org>
Mon, 3 Apr 2017 13:58:51 +0000 (15:58 +0200)
committerMarcin Siodelski <marcin@isc.org>
Mon, 3 Apr 2017 13:58:51 +0000 (15:58 +0200)
Only fixing commentary issues.

src/bin/agent/ca_command_mgr.h

index 1d34138f1593f7a188e9a59edd58bef7cc66ddb0..17b59a0666794e0c0ea0be92570d3164f6bfdb6a 100644 (file)
@@ -50,11 +50,11 @@ public:
     /// commands to Kea servers.
     ///
     /// If the received command doesn't include 'service' parameter or this
-    /// parameter is blank, the command is handled by the Control Agent or the
-    /// attached hooks libraries.
+    /// parameter is blank, the command is first handled by the attached hooks
+    /// libraries, and if still unhandled, the Control Agent itself.
     ///
-    /// If the non-blank 'service' parameter has been specified the callouts
-    /// are executed. If the callouts process the command the result is returned
+    /// If the non-blank 'service' parameter has been specified the hooks
+    /// are executed. If the hooks process the command the result is returned
     /// to the controlling client. Otherwise, the command is forwarded to each
     /// Kea server listed in the 'service' parameter.
     ///
@@ -90,12 +90,7 @@ private:
                           isc::data::ConstElementPtr params,
                           isc::data::ConstElementPtr original_cmd);
 
-    /// @brief Tries to forward received control command to Kea servers.
-    ///
-    /// When the Control Agent was unable to process the control command
-    /// because it doesn't recognize it, the command should be forwarded to
-    /// the specific Kea services listed within a 'service' parameter. This
-    /// method forwards the command to the specified Kea service.
+    /// @brief Tries to forward received control command to a specified server.
     ///
     /// @param service Contains name of the service where the command should be
     /// forwarded.
@@ -105,8 +100,7 @@ private:
     /// @return Response to forwarded command.
     /// @throw CommandForwardingError when an error occurred during forwarding.
     isc::data::ConstElementPtr
-    forwardCommand(const std::string& destination,
-                   const std::string& cmd_name,
+    forwardCommand(const std::string& service, const std::string& cmd_name,
                    const isc::data::ConstElementPtr& command);
 
     /// @brief Private constructor.