Overview of how to create Sample Plugin
To create Sample Plugin, use the following "basic information" and "operation information".
Table 4.1 Basic information
Name |
Description |
---|---|
Plugin name |
Sample Plugin |
Module name |
sample_adapter |
Package name |
com.appresso.ds.dp.modules.adapter.sample |
Class structure |
SampleAdapterModuleComponent SampleSinkOperationFactory SampleSourceOperationFactory SampleUDSFOperationFactory Messages |
Properties files |
messages_ja.properties messages_en.properties |
Table 4.2 Operation information
Operation |
Description |
---|---|
Source Operation |
Operation that generates pseudo-random numbers at regular intervals |
Sink Operation |
Operation that rounds values down to the valid decimal place and outputs them to a log |
UDSF Operation |
Operation that performs the calculation based on the previous value with the specified arithmetic operator |
By creating this adapter, you can learn about the following:
-
How to implement an execution environment plugin for plugin definition
-
How to implement a development environment plugin for definition of BQL generation
-
How to build and deploy a plugin
-
How to use a plugin
The full source code for this sample plugin is in the following directories:
Table 4.3 Full source code
Source code |
Directory |
---|---|
Runtime (Golang) |
$SDK_HOME/samples/go/src/github.com/saison-sherpa/es-agent/sample |
Studio (Java) |
$SDK_HOME/samples/sample_adapter |
If you copy the contents of the following directories under $SDK_HOME to "$SDK_HOME/dev", you can start building immediately:
-
$SDK_HOME/samples/sample_adapter
-
$SDK_HOME/samples/go