| 39 | namespace minifi { |
| 40 | |
| 41 | Connection::Connection(const std::shared_ptr<core::Repository> &flow_repository, const std::shared_ptr<core::ContentRepository> &content_repo, std::string name) |
| 42 | : core::Connectable(name), |
| 43 | flow_repository_(flow_repository), |
| 44 | content_repo_(content_repo), |
| 45 | logger_(logging::LoggerFactory<Connection>::getLogger()) { |
| 46 | source_connectable_ = nullptr; |
| 47 | dest_connectable_ = nullptr; |
| 48 | max_queue_size_ = 0; |
| 49 | max_data_queue_size_ = 0; |
| 50 | expired_duration_ = 0; |
| 51 | queued_data_size_ = 0; |
| 52 | drop_empty_ = false; |
| 53 | |
| 54 | logger_->log_debug("Connection %s created", name_); |
| 55 | } |
| 56 | |
| 57 | Connection::Connection(const std::shared_ptr<core::Repository> &flow_repository, const std::shared_ptr<core::ContentRepository> &content_repo, std::string name, const utils::Identifier& uuid) |
| 58 | : core::Connectable(name, uuid), |