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

Method onSchedule

extensions/sql/processors/SQLProcessor.h:42–51  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

40 }
41
42 void onSchedule(const std::shared_ptr<core::ProcessContext>& context, const std::shared_ptr<core::ProcessSessionFactory>& sessionFactory) override {
43 std::string controllerService;
44 context->getProperty(dbControllerService().getName(), controllerService);
45
46 dbService_ = std::dynamic_pointer_cast<sql::controllers::DatabaseService>(context->getControllerService(controllerService));
47 if (!dbService_)
48 throw minifi::Exception(PROCESSOR_EXCEPTION, "'DB Controller Service' must be defined");
49
50 static_cast<T*>(this)->processOnSchedule(*context);
51 }
52
53 void onTrigger(const std::shared_ptr<core::ProcessContext>& context, const std::shared_ptr<core::ProcessSession>& session) override {
54 std::unique_lock<std::mutex> lock(onTriggerMutex_, std::try_to_lock);

Callers

nothing calls this directly

Calls 5

ExceptionClass · 0.85
getPropertyMethod · 0.45
getNameMethod · 0.45
getControllerServiceMethod · 0.45
processOnScheduleMethod · 0.45

Tested by

no test coverage detected