![]() |
dfx 0.1.0
Linux-based dynamic dataflow executor
|
Unix control API command handler exposing dfx::Utils::SystemConfig operations. More...
#include <dfx-server/command-handlers/SystemConfigCommandHandler.hpp>
Public Member Functions | |
| SystemConfigCommandHandler (UnixRouter &router, Utils::SystemConfig &sysConfig) | |
| Construct and register system-config commands on the router. | |
| Public Member Functions inherited from dfx::Server::Api::BaseCommandHandler | |
| BaseCommandHandler ()=default | |
| Default constructor. | |
Additional Inherited Members | |
| Protected Member Functions inherited from dfx::Server::Api::BaseCommandHandler | |
| template<typename PMF> | |
| void | registerNewCommand (UnixRouter &router, std::string command, nlohmann::json const &schema, PMF handler) |
| Register a new command in the router with an associated params schema and member handler. | |
| bool | validateParams (std::string_view command, nlohmann::json const ¶ms, std::string_view id, UnixSessionPtr session) const |
| Validate params for a command and reply with errors on failure. | |
Unix control API command handler exposing dfx::Utils::SystemConfig operations.
SystemConfigCommandHandler registers a small set of Unix control commands on a dfx::Server::UnixRouter to allow clients (typically dfx-ctl) to query and modify runtime system configuration values.
| dfx::Server::Api::SystemConfigCommandHandler::SystemConfigCommandHandler | ( | UnixRouter & | router, |
| Utils::SystemConfig & | sysConfig ) |
Construct and register system-config commands on the router.
Registers set_system_value, get_system_value, and list_system_values with their associated parameter schemas and handler member functions.
| router | Router used to dispatch Unix control commands. |
| sysConfig | System configuration registry to query and update. |