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

Method unschedule

libminifi/src/ThreadedSchedulingAgent.cpp:125–141  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

123}
124
125void ThreadedSchedulingAgent::unschedule(std::shared_ptr<core::Processor> processor) {
126 std::lock_guard<std::mutex> lock(mutex_);
127 logger_->log_debug("Shutting down threads for processor %s/%s", processor->getName(), processor->getUUIDStr());
128
129 if (processor->getScheduledState() != core::RUNNING) {
130 logger_->log_warn("Cannot unschedule threads for processor %s because it is not running", processor->getName());
131 return;
132 }
133
134 thread_pool_.stopTasks(processor->getUUIDStr());
135
136 processor->clearActiveTask();
137
138 processor->setScheduledState(core::STOPPED);
139
140 processors_running_.erase(processor->getUUID());
141}
142
143} /* namespace minifi */
144} /* namespace nifi */

Callers 3

stopProcessingMethod · 0.80
stopMethod · 0.80
pauseMethod · 0.80

Calls 10

log_debugMethod · 0.80
getScheduledStateMethod · 0.80
log_warnMethod · 0.80
stopTasksMethod · 0.80
clearActiveTaskMethod · 0.80
setScheduledStateMethod · 0.80
getNameMethod · 0.45
getUUIDStrMethod · 0.45
eraseMethod · 0.45
getUUIDMethod · 0.45

Tested by

no test coverage detected