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

Method loadFlowRepo

libminifi/src/FlowController.cpp:346–361  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

344}
345
346void FlowController::loadFlowRepo() {
347 if (this->flow_file_repo_ != nullptr) {
348 logger_->log_debug("Getting connection map");
349 std::map<std::string, std::shared_ptr<core::Connectable>> connectionMap;
350 std::map<std::string, std::shared_ptr<core::Connectable>> containers;
351 if (this->root_ != nullptr) {
352 this->root_->getConnections(connectionMap);
353 this->root_->getFlowFileContainers(containers);
354 }
355 flow_file_repo_->setConnectionMap(connectionMap);
356 flow_file_repo_->setContainers(containers);
357 flow_file_repo_->loadComponent(content_repo_);
358 } else {
359 logger_->log_debug("Flow file repository is not set");
360 }
361}
362
363int16_t FlowController::start() {
364 std::lock_guard<std::recursive_mutex> flow_lock(mutex_);

Callers

nothing calls this directly

Calls 6

log_debugMethod · 0.80
getConnectionsMethod · 0.80
getFlowFileContainersMethod · 0.80
setContainersMethod · 0.80
setConnectionMapMethod · 0.45
loadComponentMethod · 0.45

Tested by

no test coverage detected