| 403 | } |
| 404 | |
| 405 | int16_t FlowController::clearConnection(const std::string &connection) { |
| 406 | if (root_ != nullptr) { |
| 407 | logger_->log_info("Attempting to clear connection %s", connection); |
| 408 | std::map<std::string, std::shared_ptr<Connection>> connections; |
| 409 | root_->getConnections(connections); |
| 410 | auto conn = connections.find(connection); |
| 411 | if (conn != connections.end()) { |
| 412 | logger_->log_info("Clearing connection %s", connection); |
| 413 | conn->second->drain(true); |
| 414 | } |
| 415 | } |
| 416 | return -1; |
| 417 | } |
| 418 | |
| 419 | std::shared_ptr<state::response::ResponseNode> FlowController::getAgentManifest() const { |
| 420 | auto agentInfo = std::make_shared<state::response::AgentInformation>("agentInfo"); |
no test coverage detected