| 209 | } |
| 210 | |
| 211 | bool Processor::flowFilesQueued() { |
| 212 | std::lock_guard<std::mutex> lock(mutex_); |
| 213 | |
| 214 | if (_incomingConnections.size() == 0) |
| 215 | return false; |
| 216 | |
| 217 | for (auto &&conn : _incomingConnections) { |
| 218 | std::shared_ptr<Connection> connection = std::static_pointer_cast<Connection>(conn); |
| 219 | if (connection->getQueueSize() > 0) |
| 220 | return true; |
| 221 | } |
| 222 | |
| 223 | return false; |
| 224 | } |
| 225 | |
| 226 | bool Processor::flowFilesOutGoingFull() { |
| 227 | std::lock_guard<std::mutex> lock(mutex_); |
no test coverage detected