|  | Kea 3.1.0
    | 
Class for control socket communication over stdout. More...
#include <stdout_control_socket.h>
| Public Member Functions | |
| StdoutControlSocket (CfgControlSocketPtr ctrl_sock) | |
| Constructor. | |
| virtual | ~StdoutControlSocket ()=default | 
| Destructor (does nothing). | |
| data::ConstElementPtr | configGet (const std::string &service) override final | 
| Get configuration. | |
| data::ConstElementPtr | configSet (data::ElementPtr config, const std::string &service) override final | 
| Set configuration. | |
| data::ConstElementPtr | configTest (data::ElementPtr config, const std::string &service) override final | 
| Test configuration. | |
| Public Member Functions inherited from isc::netconf::ControlSocketBase | |
| ControlSocketBase (CfgControlSocketPtr ctrl_sock) | |
| Constructor. | |
| virtual | ~ControlSocketBase ()=default | 
| Destructor (does nothing). | |
| const std::string | getName () const | 
| Returns the Unix socket name. | |
| CfgControlSocket::Type | getType () const | 
| Getter which returns the socket type. | |
| const isc::http::Url | getUrl () const | 
| Returns the HTTP server URL. | |
| Protected Member Functions | |
| StdoutControlSocket (CfgControlSocketPtr ctrl_sock, std::ostream &output) | |
| Alternative constructor for tests. | |
| Protected Attributes | |
| std::ostream & | output_ | 
| The output stream (std::cout outside tests). | |
| Additional Inherited Members | |
| Public Attributes inherited from isc::netconf::ControlSocketBase | |
| CfgControlSocketPtr | socket_cfg_ | 
| The control socket configuration. | |
Class for control socket communication over stdout.
This class is the derived class for control socket communication over stdout. This class implements config-test (always OK) and config-set.
Definition at line 25 of file stdout_control_socket.h.
| isc::netconf::StdoutControlSocket::StdoutControlSocket | ( | CfgControlSocketPtr | ctrl_sock | ) | 
Constructor.
Use std::cout.
| ctrl_sock | The control socket configuration. | 
Definition at line 29 of file stdout_control_socket.cc.
References isc::netconf::ControlSocketBase::ControlSocketBase(), and output_.
| 
 | virtualdefault | 
Destructor (does nothing).
| 
 | protected | 
Alternative constructor for tests.
| ctrl_sock | The control socket configuration. | 
| output | The output stream. | 
Definition at line 33 of file stdout_control_socket.cc.
References isc::netconf::ControlSocketBase::ControlSocketBase(), and output_.
| 
 | finaloverridevirtual | 
Get configuration.
Call config-get over the control socket.
| service | The target service (ignored). | 
| NotImplemented | 
Implements isc::netconf::ControlSocketBase.
Definition at line 39 of file stdout_control_socket.cc.
References isc_throw.
| 
 | finaloverridevirtual | 
Set configuration.
Call config-set over the control socket.
| config | The configuration to set. | 
| service | The target service. | 
Implements isc::netconf::ControlSocketBase.
Definition at line 50 of file stdout_control_socket.cc.
References isc::config::createAnswer(), output_, and isc::data::prettyPrint().
| 
 | finaloverridevirtual | 
Test configuration.
Call config-test over the control socket.
| config | The configuration to test (ignored). | 
| service | The target service (ignored). | 
Implements isc::netconf::ControlSocketBase.
Definition at line 44 of file stdout_control_socket.cc.
References isc::config::createAnswer().
| 
 | protected | 
The output stream (std::cout outside tests).
Definition at line 74 of file stdout_control_socket.h.
Referenced by StdoutControlSocket(), StdoutControlSocket(), and configSet().