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

Method put

libminifi/src/Connection.cpp:136–156  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

134}
135
136void Connection::put(const std::shared_ptr<core::FlowFile>& flow) {
137 if (drop_empty_ && flow->getSize() == 0) {
138 logger_->log_info("Dropping empty flow file: %s", flow->getUUIDStr());
139 return;
140 }
141 {
142 std::lock_guard<std::mutex> lock(mutex_);
143
144 queue_.push(flow);
145
146 queued_data_size_ += flow->getSize();
147
148 logger_->log_debug("Enqueue flow file UUID %s to connection %s", flow->getUUIDStr(), name_);
149 }
150
151 // Notify receiving processor that work may be available
152 if (dest_connectable_) {
153 logger_->log_debug("Notifying %s that %s was inserted", dest_connectable_->getName(), flow->getUUIDStr());
154 dest_connectable_->notifyWork();
155 }
156}
157
158void Connection::multiPut(std::vector<std::shared_ptr<core::FlowFile>>& flows) {
159 {

Callers 7

runNextProcessorMethod · 0.45
MergeFileTests.cppFile · 0.45
addControllerServiceMethod · 0.45
commitMethod · 0.45
rollbackMethod · 0.45

Calls 7

log_infoMethod · 0.80
pushMethod · 0.80
log_debugMethod · 0.80
notifyWorkMethod · 0.80
getSizeMethod · 0.45
getUUIDStrMethod · 0.45
getNameMethod · 0.45

Tested by

no test coverage detected