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

Method Processor

libminifi/src/core/Processor.cpp:51–70  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

49namespace core {
50
51Processor::Processor(const std::string& name)
52 : Connectable(name),
53 ConfigurableComponent(),
54 logger_(logging::LoggerFactory<Processor>::getLogger()) {
55 has_work_.store(false);
56 // Setup the default values
57 state_ = DISABLED;
58 strategy_ = TIMER_DRIVEN;
59 loss_tolerant_ = false;
60 _triggerWhenEmpty = false;
61 scheduling_period_nano_ = MINIMUM_SCHEDULING_NANOS;
62 run_duration_nano_ = DEFAULT_RUN_DURATION;
63 yield_period_msec_ = DEFAULT_YIELD_PERIOD_SECONDS * 1000;
64 _penalizationPeriodMsec = DEFAULT_PENALIZATION_PERIOD_SECONDS * 1000;
65 max_concurrent_tasks_ = DEFAULT_MAX_CONCURRENT_TASKS;
66 active_tasks_ = 0;
67 yield_expiration_ = 0;
68 incoming_connections_Iter = this->_incomingConnections.begin();
69 logger_->log_debug("Processor %s created UUID %s", name_, getUUIDStr());
70}
71
72Processor::Processor(const std::string& name, const utils::Identifier &uuid)
73 : Connectable(name, uuid),

Callers

nothing calls this directly

Calls 3

getUUIDStrFunction · 0.85
log_debugMethod · 0.80
beginMethod · 0.45

Tested by

no test coverage detected