MCPcopy Create free account
hub / github.com/apache/nifi-minifi-cpp / clearConnection

Method clearConnection

libminifi/src/FlowController.cpp:405–417  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

403}
404
405int16_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
419std::shared_ptr<state::response::ResponseNode> FlowController::getAgentManifest() const {
420 auto agentInfo = std::make_shared<state::response::AgentInformation>("agentInfo");

Callers 2

initializeMethod · 0.45

Calls 5

log_infoMethod · 0.80
getConnectionsMethod · 0.80
findMethod · 0.45
endMethod · 0.45
drainMethod · 0.45

Tested by

no test coverage detected