Repository: nifi-minifi-cpp Updated Branches: refs/heads/master 1f37299c4 -> c4a6a0404
MINIFICPP-470: Remove old extensions listing Update Extensions.md Add link to bootstrapping in the readme This closes #308. Signed-off-by: Aldrin Piri <[email protected]> Project: http://git-wip-us.apache.org/repos/asf/nifi-minifi-cpp/repo Commit: http://git-wip-us.apache.org/repos/asf/nifi-minifi-cpp/commit/c4a6a040 Tree: http://git-wip-us.apache.org/repos/asf/nifi-minifi-cpp/tree/c4a6a040 Diff: http://git-wip-us.apache.org/repos/asf/nifi-minifi-cpp/diff/c4a6a040 Branch: refs/heads/master Commit: c4a6a0404f59a131b8b878bc41fd87f2cd4e80b3 Parents: 1f37299 Author: Marc Parisi <[email protected]> Authored: Tue Apr 24 14:06:25 2018 -0400 Committer: Aldrin Piri <[email protected]> Committed: Wed Apr 25 11:10:35 2018 -0400 ---------------------------------------------------------------------- Extensions.md | 21 +++------------------ 1 file changed, 3 insertions(+), 18 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/nifi-minifi-cpp/blob/c4a6a040/Extensions.md ---------------------------------------------------------------------- diff --git a/Extensions.md b/Extensions.md index 3ccaf6c..63753c3 100644 --- a/Extensions.md +++ b/Extensions.md @@ -14,24 +14,7 @@ --> # Apache MiNiFi Extensions Guide -Currently we support the following extension flags: - - `-DDISABLE_CURL=TRUE` - - `-DDISABLE_ROCKSDB=TRUE` - - `-DDISABLE_LIBARCHIVE=TRUE` - - `-DDISABLE_USB_CAMERA=TRUE` - - `-DDISABLE_LIBRDKAFKA=TRUE` - - `-DDISABLE_SCRIPTING=TRUE` - - `-DDISABLE_EXPRESSION_LANGUAGE=TRUE` - - `-DDISABLE_PYTHON_SCRIPTING=TRUE` - - `-DENABLE_LUA_SCRIPTING=TRUE` - - `-DENABLE_PCAP=TRUE` - - `-DENABLE_GPS=TRUE` - - `-DENABLE_TENSORFLOW=TRUE` - - `-DENABLE_MQTT=TRUE` - -For more information on these extensions, please visit [the Extension How-To on our wiki](https://cwiki.apache.org/confluence/pages/viewpage.action?pageId=74685143) - -To enable all extensions for your platform, you may use -DENABLE_ALL=TRUE +To enable all extensions for your platform, you may use -DENABLE_ALL=TRUE OR select option m in the bootstrap.sh guided build process defined in the [ReadMe](https://github.com/apache/nifi-minifi-cpp/#bootstrapping) # Extensions by example @@ -68,6 +51,8 @@ createExtension(DISABLE_LIBARCHIVE BUILD_TP "thirdparty/libarchive-3.3.2") ``` + +It is advised that you also add your extension to bootstrap.sh as that is the suggested method of configuring MiNiFi C++ # C bindings To find your classes, you must adhere to a dlsym call back that adheres to the core::ObjectFactory class, like the one below. This object factory will return a list of classes, that we can instantiate through the class loader mechanism. Note that since we are including your code directly into our runtime, we will take care of dlopen and dlsym calls. A map from the class name to the object factory is kept in memory.
