dfx 0.1.0
Linux-based dynamic dataflow executor
Loading...
Searching...
No Matches
SystemConfigCommandHandler.hpp
1// SPDX-FileCopyrightText: 2025 Vincent Leroy
2// SPDX-License-Identifier: MIT
3//
4// This file is part of dfx.
5//
6// Licensed under the MIT License. See the LICENSE file in the project root
7// for full license information.
8
9#pragma once
10
11// Project includes
12#include "BaseCommandHandler.hpp"
13
14namespace dfx::Utils
15{
16class SystemConfig;
17} // !namespace dfx::Utils
18
19namespace dfx::Server::Api
20{
39{
40public:
53
54private:
55 bool _setSystemValue(Server::UnixSessionPtr session, nlohmann::json params, std::string id);
56 bool _getSystemValue(Server::UnixSessionPtr session, nlohmann::json params, std::string id);
57 bool _listSystemValues(Server::UnixSessionPtr session, nlohmann::json params, std::string id);
58
59private:
60 Utils::SystemConfig & _sysConfig;
61};
62} // !namespace dfx::Server::Api
BaseCommandHandler()=default
Default constructor.
SystemConfigCommandHandler(UnixRouter &router, Utils::SystemConfig &sysConfig)
Construct and register system-config commands on the router.
JSON command router for the Unix domain socket control protocol.
Definition UnixRouter.hpp:78
System configuration registry with typed values, entry metadata, and change callbacks.
Definition SystemConfig.hpp:81
Definition BaseCommandHandler.hpp:24
std::shared_ptr< UnixSession > UnixSessionPtr
Shared ownership pointer type for sessions.
Definition BaseCommandHandler.hpp:20
Definition SystemConfigCommandHandler.hpp:15