| 75 | CtrlCommand::CtrlCommand(ts::Arguments *args) : _arguments(args) {} |
| 76 | |
| 77 | void |
| 78 | CtrlCommand::execute() |
| 79 | { |
| 80 | if (_invoked_func) { |
| 81 | _invoked_func(); |
| 82 | } else { |
| 83 | throw std::logic_error("CtrlCommand::execute(): Internal error. There should be a function to invoke. (_invoked_func not set)"); |
| 84 | } |
| 85 | } |
| 86 | |
| 87 | std::string |
| 88 | RPCAccessor::invoke_rpc(std::string const &request, std::chrono::milliseconds timeout_ms, int attempts) |