This is an automated email from the ASF dual-hosted git repository.

wiener pushed a commit to branch edge-extensions
in repository 
https://gitbox.apache.org/repos/asf/incubator-streampipes-extensions.git

commit e6553c1b696226b8095f16eba80d5f5b8d1f5fb2
Author: Patrick Wiener <[email protected]>
AuthorDate: Fri Jan 15 11:31:58 2021 +0100

    [WIP] add dummy processor with gpu requirement for testing
---
 pom.xml                                            |   1 +
 .../extensions/all/jvm/AllExtensionsInit.java      |   5 +-
 streampipes-pipeline-elements-all-jvm/pom.xml      |   6 ++
 .../pe/jvm/AllPipelineElementsInit.java            |   6 +-
 .../changedetection/jvm/cusum/CusumController.java |   2 +-
 streampipes-processors-dummy-jvm/Dockerfile        |  25 ++++++++
 .../aarch64.Dockerfile                             |  26 ++++++++
 streampipes-processors-dummy-jvm/arm.Dockerfile    |  26 ++++++++
 streampipes-processors-dummy-jvm/development/env   |  19 ++++++
 .../pom.xml                                        |  69 +++++----------------
 .../processors/dummy/jvm/DummyJvmInit.java         |  52 ++++++++++++++++
 .../processors/dummy/jvm/config/ConfigKeys.java    |  25 ++++++++
 .../dummy/jvm/config/DummyJvmConfig.java           |  60 ++++++++++++++++++
 .../dummy/jvm/processor/dummy/Dummy.java           |  45 ++++++++++++++
 .../dummy/jvm/processor/dummy/DummyController.java |  59 ++++++++++++++++++
 .../dummy/jvm/processor/dummy/DummyParameters.java |  29 +++++++++
 .../documentation.md                               |  38 ++++++++++++
 .../icon.png                                       | Bin 0 -> 3172 bytes
 .../strings.en                                     |   2 +
 .../siddhi/listcollector/ListCollector.java        |   2 +-
 .../processors/siddhi/listfilter/ListFilter.java   |   2 +-
 21 files changed, 442 insertions(+), 57 deletions(-)

diff --git a/pom.xml b/pom.xml
index e33d811..6de1256 100644
--- a/pom.xml
+++ b/pom.xml
@@ -59,6 +59,7 @@
         <module>streampipes-pipeline-elements-all-flink</module>
         <module>streampipes-processors-change-detection-jvm</module>
         <module>streampipes-extensions-all-jvm</module>
+        <module>streampipes-processors-dummy-jvm</module>
     </modules>
 
     <properties>
diff --git 
a/streampipes-extensions-all-jvm/src/main/java/org/apache/streampipes/extensions/all/jvm/AllExtensionsInit.java
 
b/streampipes-extensions-all-jvm/src/main/java/org/apache/streampipes/extensions/all/jvm/AllExtensionsInit.java
index 97793b5..7d827ee 100644
--- 
a/streampipes-extensions-all-jvm/src/main/java/org/apache/streampipes/extensions/all/jvm/AllExtensionsInit.java
+++ 
b/streampipes-extensions-all-jvm/src/main/java/org/apache/streampipes/extensions/all/jvm/AllExtensionsInit.java
@@ -50,6 +50,7 @@ import 
org.apache.streampipes.connect.protocol.stream.pulsar.PulsarProtocol;
 import org.apache.streampipes.container.extensions.ExtensionsModelSubmitter;
 import org.apache.streampipes.container.init.DeclarersSingleton;
 import org.apache.streampipes.extensions.all.jvm.config.AllExtensionsConfig;
+import 
org.apache.streampipes.processors.dummy.jvm.processor.dummy.DummyController;
 import 
org.apache.streampipes.processors.enricher.jvm.processor.jseval.JSEvalController;
 import 
org.apache.streampipes.processors.enricher.jvm.processor.sizemeasure.SizeMeasureController;
 import 
org.apache.streampipes.processors.filters.jvm.processor.compose.ComposeController;
@@ -191,7 +192,9 @@ public class AllExtensionsInit extends 
ExtensionsModelSubmitter {
                 .add(new TransformToBooleanController())
                 .add(new StringCounterController())
                 .add(new StringTimerController())
-                .add(new NumberLabelerController());
+                .add(new NumberLabelerController())
+                // streampipes-processors-dummy-jvm
+                .add(new DummyController());
 //                // streampipes-sinks-brokers-jvm
 //                .add(new KafkaController())
 //                .add(new JmsController())
diff --git a/streampipes-pipeline-elements-all-jvm/pom.xml 
b/streampipes-pipeline-elements-all-jvm/pom.xml
index 4bea755..150ba1d 100644
--- a/streampipes-pipeline-elements-all-jvm/pom.xml
+++ b/streampipes-pipeline-elements-all-jvm/pom.xml
@@ -100,6 +100,12 @@
             <version>${streampipes.version}</version>
             <classifier>embed</classifier>
         </dependency>
+        <dependency>
+            <groupId>org.apache.streampipes</groupId>
+            <artifactId>streampipes-processors-dummy-jvm</artifactId>
+            <version>${streampipes.version}</version>
+            <scope>embded</scope>
+        </dependency>
 
         <!-- 3rd party dependencies to avoid convergence errors -->
         <dependency>
diff --git 
a/streampipes-pipeline-elements-all-jvm/src/main/java/org/apache/streampipes/pe/jvm/AllPipelineElementsInit.java
 
b/streampipes-pipeline-elements-all-jvm/src/main/java/org/apache/streampipes/pe/jvm/AllPipelineElementsInit.java
index c425150..c408146 100644
--- 
a/streampipes-pipeline-elements-all-jvm/src/main/java/org/apache/streampipes/pe/jvm/AllPipelineElementsInit.java
+++ 
b/streampipes-pipeline-elements-all-jvm/src/main/java/org/apache/streampipes/pe/jvm/AllPipelineElementsInit.java
@@ -28,6 +28,7 @@ import 
org.apache.streampipes.messaging.kafka.SpKafkaProtocolFactory;
 import org.apache.streampipes.messaging.mqtt.SpMqttProtocolFactory;
 import org.apache.streampipes.pe.jvm.config.AllPipelineElementsConfig;
 import 
org.apache.streampipes.processors.changedetection.jvm.cusum.CusumController;
+import 
org.apache.streampipes.processors.dummy.jvm.processor.dummy.DummyController;
 import 
org.apache.streampipes.processors.enricher.jvm.processor.jseval.JSEvalController;
 import 
org.apache.streampipes.processors.enricher.jvm.processor.sizemeasure.SizeMeasureController;
 import 
org.apache.streampipes.processors.filters.jvm.processor.compose.ComposeController;
@@ -200,7 +201,10 @@ public class AllPipelineElementsInit extends 
StandaloneModelSubmitter {
             .add(new EmailController())
             .add(new TelegramController())
             .add(new OneSignalController())
-            .add(new SlackNotificationController());
+            .add(new SlackNotificationController())
+            // TODO: delete this one after testing
+            // streampipes-projecessors-dummy-jvm
+            .add(new DummyController());
 
     DeclarersSingleton.getInstance().registerDataFormats(
             new JsonDataFormatFactory(),
diff --git 
a/streampipes-processors-change-detection-jvm/src/main/java/org/apache/streampipes/processors/changedetection/jvm/cusum/CusumController.java
 
b/streampipes-processors-change-detection-jvm/src/main/java/org/apache/streampipes/processors/changedetection/jvm/cusum/CusumController.java
index b4a6ea6..3a926e1 100644
--- 
a/streampipes-processors-change-detection-jvm/src/main/java/org/apache/streampipes/processors/changedetection/jvm/cusum/CusumController.java
+++ 
b/streampipes-processors-change-detection-jvm/src/main/java/org/apache/streampipes/processors/changedetection/jvm/cusum/CusumController.java
@@ -43,7 +43,7 @@ public class CusumController extends 
StandaloneEventProcessingDeclarer<CusumPara
     public DataProcessorDescription declareModel() {
         return 
ProcessingElementBuilder.create("org.apache.streampipes.processors.changedetection.jvm.cusum")
                 .category(DataProcessorType.FILTER)
-                .withAssets(Assets.DOCUMENTATION, Assets.ICON)
+                .withAssets(Assets.DOCUMENTATION)
                 .withLocales(Locales.EN)
                 .requiredStream(StreamRequirementsBuilder
                         .create()
diff --git a/streampipes-processors-dummy-jvm/Dockerfile 
b/streampipes-processors-dummy-jvm/Dockerfile
new file mode 100644
index 0000000..ddcc51a
--- /dev/null
+++ b/streampipes-processors-dummy-jvm/Dockerfile
@@ -0,0 +1,25 @@
+# Licensed to the Apache Software Foundation (ASF) under one or more
+# contributor license agreements.  See the NOTICE file distributed with
+# this work for additional information regarding copyright ownership.
+# The ASF licenses this file to You under the Apache License, Version 2.0
+# (the "License"); you may not use this file except in compliance with
+# the License.  You may obtain a copy of the License at
+#
+#    http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+
+ARG BASE_IMAGE=adoptopenjdk/openjdk8-openj9:alpine
+FROM $BASE_IMAGE
+
+ENV CONSUL_LOCATION consul
+
+EXPOSE 8090
+
+COPY target/streampipes-processors-dummy-jvm.jar  
/streampipes-processing-element-container.jar
+
+ENTRYPOINT ["java", "-jar", "/streampipes-processing-element-container.jar"]
diff --git a/streampipes-processors-dummy-jvm/aarch64.Dockerfile 
b/streampipes-processors-dummy-jvm/aarch64.Dockerfile
new file mode 100644
index 0000000..ba91f2f
--- /dev/null
+++ b/streampipes-processors-dummy-jvm/aarch64.Dockerfile
@@ -0,0 +1,26 @@
+# Licensed to the Apache Software Foundation (ASF) under one or more
+# contributor license agreements.  See the NOTICE file distributed with
+# this work for additional information regarding copyright ownership.
+# The ASF licenses this file to You under the Apache License, Version 2.0
+# (the "License"); you may not use this file except in compliance with
+# the License.  You may obtain a copy of the License at
+#
+#    http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+
+ARG BASE_IMAGE=arm64v8/openjdk:11-jre-slim
+FROM $BASE_IMAGE
+
+ENV CONSUL_LOCATION consul
+
+EXPOSE 8090
+
+COPY qemu-aarch64-static /usr/bin
+COPY target/streampipes-processors-dummy-jvm.jar  
/streampipes-processing-element-container.jar
+
+ENTRYPOINT ["java", "-jar", "/streampipes-processing-element-container.jar"]
diff --git a/streampipes-processors-dummy-jvm/arm.Dockerfile 
b/streampipes-processors-dummy-jvm/arm.Dockerfile
new file mode 100644
index 0000000..c8cc39a
--- /dev/null
+++ b/streampipes-processors-dummy-jvm/arm.Dockerfile
@@ -0,0 +1,26 @@
+# Licensed to the Apache Software Foundation (ASF) under one or more
+# contributor license agreements.  See the NOTICE file distributed with
+# this work for additional information regarding copyright ownership.
+# The ASF licenses this file to You under the Apache License, Version 2.0
+# (the "License"); you may not use this file except in compliance with
+# the License.  You may obtain a copy of the License at
+#
+#    http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+
+ARG BASE_IMAGE=arm32v7/openjdk:11-jre-slim
+FROM $BASE_IMAGE
+
+ENV CONSUL_LOCATION consul
+
+EXPOSE 8090
+
+COPY qemu-arm-static /usr/bin
+COPY target/streampipes-processors-dummy-jvm.jar  
/streampipes-processing-element-container.jar
+
+ENTRYPOINT ["java", "-jar", "/streampipes-processing-element-container.jar"]
diff --git a/streampipes-processors-dummy-jvm/development/env 
b/streampipes-processors-dummy-jvm/development/env
new file mode 100644
index 0000000..60be7a3
--- /dev/null
+++ b/streampipes-processors-dummy-jvm/development/env
@@ -0,0 +1,19 @@
+# Licensed to the Apache Software Foundation (ASF) under one or more
+# contributor license agreements.  See the NOTICE file distributed with
+# this work for additional information regarding copyright ownership.
+# The ASF licenses this file to You under the Apache License, Version 2.0
+# (the "License"); you may not use this file except in compliance with
+# the License.  You may obtain a copy of the License at
+#
+#    http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+
+# Those parameters are used by IntelliJ to set the default consul parameters 
for development
+SP_PORT=6015
+SP_HOST=localhost
+SP_DEBUG=true
diff --git a/streampipes-pipeline-elements-all-jvm/pom.xml 
b/streampipes-processors-dummy-jvm/pom.xml
similarity index 55%
copy from streampipes-pipeline-elements-all-jvm/pom.xml
copy to streampipes-processors-dummy-jvm/pom.xml
index 4bea755..4bb320b 100644
--- a/streampipes-pipeline-elements-all-jvm/pom.xml
+++ b/streampipes-processors-dummy-jvm/pom.xml
@@ -25,90 +25,57 @@
     </parent>
     <modelVersion>4.0.0</modelVersion>
 
-    <artifactId>streampipes-pipeline-elements-all-jvm</artifactId>
+    <artifactId>streampipes-processors-dummy-jvm</artifactId>
 
     <dependencies>
+        <!-- StreamPipes dependencies -->
         <dependency>
             <groupId>org.apache.streampipes</groupId>
-            <artifactId>streampipes-processors-filters-jvm</artifactId>
-            <version>${streampipes.version}</version>
-            <classifier>embed</classifier>
+            <artifactId>streampipes-config</artifactId>
         </dependency>
         <dependency>
             <groupId>org.apache.streampipes</groupId>
-            
<artifactId>streampipes-processors-image-processing-jvm</artifactId>
-            <version>${streampipes.version}</version>
-            <classifier>embed</classifier>
+            <artifactId>streampipes-container-standalone</artifactId>
         </dependency>
         <dependency>
             <groupId>org.apache.streampipes</groupId>
-            <artifactId>streampipes-processors-filters-siddhi</artifactId>
-            <version>${streampipes.version}</version>
-            <classifier>embed</classifier>
+            <artifactId>streampipes-dataformat-json</artifactId>
         </dependency>
         <dependency>
             <groupId>org.apache.streampipes</groupId>
-            <artifactId>streampipes-processors-text-mining-jvm</artifactId>
-            <version>${streampipes.version}</version>
-            <classifier>embed</classifier>
+            <artifactId>streampipes-dataformat-cbor</artifactId>
         </dependency>
         <dependency>
             <groupId>org.apache.streampipes</groupId>
-            <artifactId>streampipes-processors-transformation-jvm</artifactId>
-            <version>${streampipes.version}</version>
-            <classifier>embed</classifier>
+            <artifactId>streampipes-dataformat-smile</artifactId>
         </dependency>
         <dependency>
             <groupId>org.apache.streampipes</groupId>
-            <artifactId>streampipes-sinks-brokers-jvm</artifactId>
-            <version>${streampipes.version}</version>
-            <classifier>embed</classifier>
+            <artifactId>streampipes-dataformat-fst</artifactId>
         </dependency>
         <dependency>
             <groupId>org.apache.streampipes</groupId>
-            <artifactId>streampipes-sinks-databases-jvm</artifactId>
-            <version>${streampipes.version}</version>
-            <classifier>embed</classifier>
+            <artifactId>streampipes-messaging-jms</artifactId>
         </dependency>
         <dependency>
             <groupId>org.apache.streampipes</groupId>
-            <artifactId>streampipes-sinks-internal-jvm</artifactId>
-            <version>${streampipes.version}</version>
-            <classifier>embed</classifier>
+            <artifactId>streampipes-messaging-kafka</artifactId>
         </dependency>
         <dependency>
             <groupId>org.apache.streampipes</groupId>
-            <artifactId>streampipes-sinks-notifications-jvm</artifactId>
-            <version>${streampipes.version}</version>
-            <classifier>embed</classifier>
+            <artifactId>streampipes-messaging-mqtt</artifactId>
         </dependency>
         <dependency>
             <groupId>org.apache.streampipes</groupId>
-            <artifactId>streampipes-processors-enricher-jvm</artifactId>
-            <version>${streampipes.version}</version>
-            <classifier>embed</classifier>
+            <artifactId>streampipes-sdk</artifactId>
         </dependency>
         <dependency>
             <groupId>org.apache.streampipes</groupId>
-            <artifactId>streampipes-processors-geo-jvm</artifactId>
-            <version>${streampipes.version}</version>
-            <classifier>embed</classifier>
+            <artifactId>streampipes-wrapper-standalone</artifactId>
         </dependency>
         <dependency>
-            <groupId>org.apache.streampipes</groupId>
-            
<artifactId>streampipes-processors-change-detection-jvm</artifactId>
-            <version>${streampipes.version}</version>
-            <classifier>embed</classifier>
-        </dependency>
-
-        <!-- 3rd party dependencies to avoid convergence errors -->
-        <dependency>
-            <groupId>io.dropwizard.metrics</groupId>
-            <artifactId>metrics-core</artifactId>
-        </dependency>
-        <dependency>
-            <groupId>org.atteo.classindex</groupId>
-            <artifactId>classindex</artifactId>
+            <groupId>org.quartz-scheduler</groupId>
+            <artifactId>quartz</artifactId>
         </dependency>
     </dependencies>
 
@@ -137,13 +104,11 @@
                         <goals>
                             <goal>repackage</goal>
                         </goals>
-                        <configuration>
-                            
<mainClass>org.apache.streampipes.pe.jvm.AllPipelineElementsInit</mainClass>
-                        </configuration>
                     </execution>
                 </executions>
             </plugin>
         </plugins>
-        <finalName>streampipes-processors-all-jvm</finalName>
+        <finalName>streampipes-processors-dummy-jvm</finalName>
+
     </build>
 </project>
\ No newline at end of file
diff --git 
a/streampipes-processors-dummy-jvm/src/main/java/org/apache/streampipes/processors/dummy/jvm/DummyJvmInit.java
 
b/streampipes-processors-dummy-jvm/src/main/java/org/apache/streampipes/processors/dummy/jvm/DummyJvmInit.java
new file mode 100644
index 0000000..c6811bc
--- /dev/null
+++ 
b/streampipes-processors-dummy-jvm/src/main/java/org/apache/streampipes/processors/dummy/jvm/DummyJvmInit.java
@@ -0,0 +1,52 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements.  See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License.  You may obtain a copy of the License at
+ *
+ *    http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ *
+ */
+
+package org.apache.streampipes.processors.dummy.jvm;
+
+import org.apache.streampipes.container.init.DeclarersSingleton;
+import 
org.apache.streampipes.container.standalone.init.StandaloneModelSubmitter;
+import org.apache.streampipes.dataformat.cbor.CborDataFormatFactory;
+import org.apache.streampipes.dataformat.fst.FstDataFormatFactory;
+import org.apache.streampipes.dataformat.json.JsonDataFormatFactory;
+import org.apache.streampipes.dataformat.smile.SmileDataFormatFactory;
+import org.apache.streampipes.messaging.jms.SpJmsProtocolFactory;
+import org.apache.streampipes.messaging.kafka.SpKafkaProtocolFactory;
+import org.apache.streampipes.messaging.mqtt.SpMqttProtocolFactory;
+import org.apache.streampipes.processors.dummy.jvm.config.DummyJvmConfig;
+import 
org.apache.streampipes.processors.dummy.jvm.processor.dummy.DummyController;
+
+public class DummyJvmInit extends StandaloneModelSubmitter {
+
+  public static void main(String[] args) {
+    DeclarersSingleton.getInstance()
+            .add(new DummyController());
+
+    DeclarersSingleton.getInstance().registerDataFormats(
+            new JsonDataFormatFactory(),
+            new CborDataFormatFactory(),
+            new SmileDataFormatFactory(),
+            new FstDataFormatFactory());
+
+    DeclarersSingleton.getInstance().registerProtocols(
+            new SpKafkaProtocolFactory(),
+            new SpMqttProtocolFactory(),
+            new SpJmsProtocolFactory());
+
+    new DummyJvmInit().init(DummyJvmConfig.INSTANCE);
+  }
+}
diff --git 
a/streampipes-processors-dummy-jvm/src/main/java/org/apache/streampipes/processors/dummy/jvm/config/ConfigKeys.java
 
b/streampipes-processors-dummy-jvm/src/main/java/org/apache/streampipes/processors/dummy/jvm/config/ConfigKeys.java
new file mode 100644
index 0000000..e358fdc
--- /dev/null
+++ 
b/streampipes-processors-dummy-jvm/src/main/java/org/apache/streampipes/processors/dummy/jvm/config/ConfigKeys.java
@@ -0,0 +1,25 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements.  See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License.  You may obtain a copy of the License at
+ *
+ *    http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ *
+ */
+
+package org.apache.streampipes.processors.dummy.jvm.config;
+
+public class ConfigKeys {
+    final static String HOST = "SP_HOST";
+    final static String PORT = "SP_PORT";
+    final static String SERVICE_NAME_KEY = "SP_SERVICE_NAME";
+}
diff --git 
a/streampipes-processors-dummy-jvm/src/main/java/org/apache/streampipes/processors/dummy/jvm/config/DummyJvmConfig.java
 
b/streampipes-processors-dummy-jvm/src/main/java/org/apache/streampipes/processors/dummy/jvm/config/DummyJvmConfig.java
new file mode 100644
index 0000000..88e32fa
--- /dev/null
+++ 
b/streampipes-processors-dummy-jvm/src/main/java/org/apache/streampipes/processors/dummy/jvm/config/DummyJvmConfig.java
@@ -0,0 +1,60 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements.  See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License.  You may obtain a copy of the License at
+ *
+ *    http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ *
+ */
+
+package org.apache.streampipes.processors.dummy.jvm.config;
+
+import org.apache.streampipes.config.SpConfig;
+import org.apache.streampipes.container.model.PeConfig;
+
+public enum DummyJvmConfig implements PeConfig {
+       INSTANCE;
+
+       private final SpConfig config;
+
+       private final static String service_id = 
"pe/org.apache.streampipes.processors.dummy.jvm";
+       private final static String service_name = "Processors Dummy JVM";
+       private final static String service_container_name = 
"processors-dummy-jvm";
+
+       DummyJvmConfig() {
+               config = SpConfig.getSpConfig(service_id);
+               config.register(ConfigKeys.HOST, service_container_name, 
"Hostname");
+               config.register(ConfigKeys.PORT, 8090, "Port");
+               config.register(ConfigKeys.SERVICE_NAME_KEY, service_name, "The 
name of the service");
+       }
+
+       @Override
+       public String getHost() {
+               return config.getString(ConfigKeys.HOST);
+       }
+
+       @Override
+       public int getPort() {
+               return config.getInteger(ConfigKeys.PORT);
+       }
+
+       @Override
+       public String getId() {
+               return service_id;
+       }
+
+       @Override
+       public String getName() {
+               return config.getString(ConfigKeys.SERVICE_NAME_KEY);
+       }
+
+}
diff --git 
a/streampipes-processors-dummy-jvm/src/main/java/org/apache/streampipes/processors/dummy/jvm/processor/dummy/Dummy.java
 
b/streampipes-processors-dummy-jvm/src/main/java/org/apache/streampipes/processors/dummy/jvm/processor/dummy/Dummy.java
new file mode 100644
index 0000000..48938dd
--- /dev/null
+++ 
b/streampipes-processors-dummy-jvm/src/main/java/org/apache/streampipes/processors/dummy/jvm/processor/dummy/Dummy.java
@@ -0,0 +1,45 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements.  See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License.  You may obtain a copy of the License at
+ *
+ *    http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ *
+ */
+
+package org.apache.streampipes.processors.dummy.jvm.processor.dummy;
+
+import org.apache.streampipes.model.runtime.Event;
+import org.apache.streampipes.wrapper.context.EventProcessorRuntimeContext;
+import org.apache.streampipes.wrapper.routing.SpOutputCollector;
+import org.apache.streampipes.wrapper.runtime.EventProcessor;
+
+public class Dummy implements EventProcessor<DummyParameters> {
+
+  private DummyParameters params;
+
+  @Override
+  public void onInvocation(DummyParameters params, SpOutputCollector 
spOutputCollector, EventProcessorRuntimeContext
+          runtimeContext) {
+    this.params = params;
+  }
+
+  @Override
+  public void onEvent(Event event, SpOutputCollector out) {
+    out.collect(event);
+  }
+
+  @Override
+  public void onDetach() {
+
+  }
+}
diff --git 
a/streampipes-processors-dummy-jvm/src/main/java/org/apache/streampipes/processors/dummy/jvm/processor/dummy/DummyController.java
 
b/streampipes-processors-dummy-jvm/src/main/java/org/apache/streampipes/processors/dummy/jvm/processor/dummy/DummyController.java
new file mode 100644
index 0000000..9149068
--- /dev/null
+++ 
b/streampipes-processors-dummy-jvm/src/main/java/org/apache/streampipes/processors/dummy/jvm/processor/dummy/DummyController.java
@@ -0,0 +1,59 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements.  See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License.  You may obtain a copy of the License at
+ *
+ *    http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ *
+ */
+
+package org.apache.streampipes.processors.dummy.jvm.processor.dummy;
+
+import org.apache.streampipes.model.DataProcessorType;
+import org.apache.streampipes.model.graph.DataProcessorDescription;
+import org.apache.streampipes.model.graph.DataProcessorInvocation;
+import org.apache.streampipes.sdk.builder.ProcessingElementBuilder;
+import org.apache.streampipes.sdk.builder.ResourceRequirementsBuilder;
+import org.apache.streampipes.sdk.builder.StreamRequirementsBuilder;
+import 
org.apache.streampipes.sdk.extractor.ProcessingElementParameterExtractor;
+import org.apache.streampipes.sdk.helpers.*;
+import org.apache.streampipes.sdk.utils.Assets;
+import org.apache.streampipes.wrapper.standalone.ConfiguredEventProcessor;
+import 
org.apache.streampipes.wrapper.standalone.declarer.StandaloneEventProcessingDeclarer;
+
+public class DummyController extends 
StandaloneEventProcessingDeclarer<DummyParameters> {
+
+  @Override
+  public DataProcessorDescription declareModel() {
+    return 
ProcessingElementBuilder.create("org.apache.streampipes.processors.dummy.jvm.dummy")
+            .category(DataProcessorType.FILTER)
+            .withAssets(Assets.DOCUMENTATION)
+            .withLocales(Locales.EN)
+            .requiredStream(StreamRequirementsBuilder
+                    .create()
+                    .requiredProperty(EpRequirements.anyProperty()).build())
+            .requiredResource(ResourceRequirementsBuilder
+                    .create()
+                    .requiredProperty(NodeResourceRequirements.gpu())
+                    .build())
+            .outputStrategy(OutputStrategies.keep())
+            .build();
+  }
+
+  @Override
+  public ConfiguredEventProcessor<DummyParameters> onInvocation
+          (DataProcessorInvocation graph, ProcessingElementParameterExtractor 
extractor) {
+
+    DummyParameters params = new DummyParameters(graph);
+    return new ConfiguredEventProcessor<>(params, Dummy::new);
+  }
+}
diff --git 
a/streampipes-processors-dummy-jvm/src/main/java/org/apache/streampipes/processors/dummy/jvm/processor/dummy/DummyParameters.java
 
b/streampipes-processors-dummy-jvm/src/main/java/org/apache/streampipes/processors/dummy/jvm/processor/dummy/DummyParameters.java
new file mode 100644
index 0000000..7ca18e4
--- /dev/null
+++ 
b/streampipes-processors-dummy-jvm/src/main/java/org/apache/streampipes/processors/dummy/jvm/processor/dummy/DummyParameters.java
@@ -0,0 +1,29 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements.  See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License.  You may obtain a copy of the License at
+ *
+ *    http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ *
+ */
+
+package org.apache.streampipes.processors.dummy.jvm.processor.dummy;
+
+import org.apache.streampipes.model.graph.DataProcessorInvocation;
+import 
org.apache.streampipes.wrapper.params.binding.EventProcessorBindingParams;
+
+public class DummyParameters extends EventProcessorBindingParams {
+
+  public DummyParameters(DataProcessorInvocation graph) {
+    super(graph);
+  }
+}
diff --git 
a/streampipes-processors-dummy-jvm/src/main/resources/org.apache.streampipes.processors.dummy.jvm.dummy/documentation.md
 
b/streampipes-processors-dummy-jvm/src/main/resources/org.apache.streampipes.processors.dummy.jvm.dummy/documentation.md
new file mode 100644
index 0000000..7528100
--- /dev/null
+++ 
b/streampipes-processors-dummy-jvm/src/main/resources/org.apache.streampipes.processors.dummy.jvm.dummy/documentation.md
@@ -0,0 +1,38 @@
+<!--
+  ~ Licensed to the Apache Software Foundation (ASF) under one or more
+  ~ contributor license agreements.  See the NOTICE file distributed with
+  ~ this work for additional information regarding copyright ownership.
+  ~ The ASF licenses this file to You under the Apache License, Version 2.0
+  ~ (the "License"); you may not use this file except in compliance with
+  ~ the License.  You may obtain a copy of the License at
+  ~
+  ~    http://www.apache.org/licenses/LICENSE-2.0
+  ~
+  ~ Unless required by applicable law or agreed to in writing, software
+  ~ distributed under the License is distributed on an "AS IS" BASIS,
+  ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+  ~ See the License for the specific language governing permissions and
+  ~ limitations under the License.
+  ~
+  -->
+
+## Dummy Processor
+
+<p align="center"> 
+    <img src="icon.png" width="150px;" class="pe-image-documentation"/>
+</p>
+
+***
+
+## Description
+
+
+***
+
+## Required input
+
+***
+
+## Configuration
+
+### Field
\ No newline at end of file
diff --git 
a/streampipes-processors-dummy-jvm/src/main/resources/org.apache.streampipes.processors.dummy.jvm.dummy/icon.png
 
b/streampipes-processors-dummy-jvm/src/main/resources/org.apache.streampipes.processors.dummy.jvm.dummy/icon.png
new file mode 100644
index 0000000..643d474
Binary files /dev/null and 
b/streampipes-processors-dummy-jvm/src/main/resources/org.apache.streampipes.processors.dummy.jvm.dummy/icon.png
 differ
diff --git 
a/streampipes-processors-dummy-jvm/src/main/resources/org.apache.streampipes.processors.dummy.jvm.dummy/strings.en
 
b/streampipes-processors-dummy-jvm/src/main/resources/org.apache.streampipes.processors.dummy.jvm.dummy/strings.en
new file mode 100644
index 0000000..6d1d11a
--- /dev/null
+++ 
b/streampipes-processors-dummy-jvm/src/main/resources/org.apache.streampipes.processors.dummy.jvm.dummy/strings.en
@@ -0,0 +1,2 @@
+org.apache.streampipes.processors.dummy.jvm.dummy.title=Dummy Processor
+org.apache.streampipes.processors.dummy.jvm.dummy.description=Dummy Processor 
Description
\ No newline at end of file
diff --git 
a/streampipes-processors-filters-siddhi/src/main/java/org/apache/streampipes/processors/siddhi/listcollector/ListCollector.java
 
b/streampipes-processors-filters-siddhi/src/main/java/org/apache/streampipes/processors/siddhi/listcollector/ListCollector.java
index 036f8d2..2452b4a 100644
--- 
a/streampipes-processors-filters-siddhi/src/main/java/org/apache/streampipes/processors/siddhi/listcollector/ListCollector.java
+++ 
b/streampipes-processors-filters-siddhi/src/main/java/org/apache/streampipes/processors/siddhi/listcollector/ListCollector.java
@@ -51,7 +51,7 @@ public class ListCollector extends StreamPipesSiddhiProcessor
     return 
ProcessingElementBuilder.create("org.apache.streampipes.processors.siddhi.listcollector")
             .withLocales(Locales.EN)
             .category(DataProcessorType.PATTERN_DETECT)
-            .withAssets(Assets.DOCUMENTATION, Assets.ICON)
+            .withAssets(Assets.DOCUMENTATION)
             .requiredStream(StreamRequirementsBuilder.create()
                     
.requiredPropertyWithUnaryMapping(EpRequirements.anyProperty(), Labels.withId
                             (LIST_KEY), PropertyScope.MEASUREMENT_PROPERTY)
diff --git 
a/streampipes-processors-filters-siddhi/src/main/java/org/apache/streampipes/processors/siddhi/listfilter/ListFilter.java
 
b/streampipes-processors-filters-siddhi/src/main/java/org/apache/streampipes/processors/siddhi/listfilter/ListFilter.java
index 59b7ff7..85dbd8c 100644
--- 
a/streampipes-processors-filters-siddhi/src/main/java/org/apache/streampipes/processors/siddhi/listfilter/ListFilter.java
+++ 
b/streampipes-processors-filters-siddhi/src/main/java/org/apache/streampipes/processors/siddhi/listfilter/ListFilter.java
@@ -48,7 +48,7 @@ public class ListFilter extends StreamPipesSiddhiProcessor {
     return 
ProcessingElementBuilder.create("org.apache.streampipes.processors.siddhi.listfilter")
             .withLocales(Locales.EN)
             .category(DataProcessorType.PATTERN_DETECT)
-            .withAssets(Assets.DOCUMENTATION, Assets.ICON)
+            .withAssets(Assets.DOCUMENTATION)
             .requiredStream(StreamRequirementsBuilder.create()
                     
.requiredPropertyWithUnaryMapping(EpRequirements.listRequirement(), 
Labels.withId
                             (LIST_KEY), PropertyScope.MEASUREMENT_PROPERTY)

Reply via email to