Official | HULFT IoT EdgeStreaming Plugin SDK Getting Started Third Edition: July 1, 2021

Preparation for implementation with Java

Create the directories used for implementation with Java and set the properties.

 

  1. Create the module directory

    Create a directory called "sample_adapter" directly under $SDK_HOME/dev.

    • $SDK_HOME/dev/sample_adapter

     

  2. Copy build.xml and config.properties

    Copy the build.xml file and config.properties file in the $SDK_HOME/dev/conf directory to the module directory.

     

  3. Edit the config.properties file

    Set the following properties:

     

    Property

    Setting Value

    Implementation-Vendor

    APPRESSO K.K.

    Implementation-Title

    SampleAdapter

    Implementation-Version

    0

    module.label

    Sample Plugin

    module.category

    SAMPLE

    display.name

    Sample Plugin Adapter

    plugin.name

    sample_plugin

    esagent.plugin.package

    github.sis.saison.co.jp/sherpa/es-agent/sample

     

  4. Create the source directory

    Create the "src" directory in $SDK_HOME/dev/sample_adapter.

    • $SDK_HOME/dev/sample_adapter/src

     

    Create a package directory as follows so that the next created Java file package is "com/appresso/ds/dp/modules/adapter/sample":

    • $SDK_HOME/dev/sample_adapter/src/com/appresso/ds/dp/modules/adapter/sample

     

  5. Create the source files

    Create source files with the following file names in the package directory.

    UTF-8 should be used for file encoding.

    • SampleAdapterModuleComponent.java

    • SampleSinkOperationFactory.java

    • SampleSourceOperationFactory.java

    • SampleUDSFOperationFactory.java

    • Messages.java

     

  6. Create the properties files

    Create the following properties files.

    UTF-8 should be used for file encoding.

    • messages_ja.properties

    • messages_en.properties

     

  7. Settings when using an IDE

    If you use an IDE for implementation with Java, configure the following settings:

    1. Start the IDE and specify %SDK_HOME%/dev/sample_adapter to open it.

    2. Add all of the jar files in the following folders as libraries:

      • %DATASPIDER_HOME%\server\system\common\lib

      • %DATASPIDER_HOME%\server\plugin\data_processing\share\lib\

      <Example> In the case of Intellij:

      Select File > Project Structures > Libraries

      Select Java using the + button

      Select all of the jar files in the folder

      Click the OK button

     

 

 

 

Official | HULFT IoT EdgeStreaming Plugin SDK Getting Started Third Edition: July 1, 2021