You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@karaf.apache.org by jb...@apache.org on 2020/04/24 05:24:42 UTC
[karaf-decanter] branch master updated: Add aggregate processor
config file by default
This is an automated email from the ASF dual-hosted git repository.
jbonofre pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/karaf-decanter.git
The following commit(s) were added to refs/heads/master by this push:
new 6b27f2f Add aggregate processor config file by default
6b27f2f is described below
commit 6b27f2ff3342e1964f2f9ef77facd16f7fea29b9
Author: jbonofre <jb...@apache.org>
AuthorDate: Fri Apr 24 07:24:38 2020 +0200
Add aggregate processor config file by default
---
assembly/src/main/feature/feature.xml | 7 +++-
processor/aggregate/pom.xml | 20 +++++++++++
...g.apache.karaf.decanter.processor.aggregate.cfg | 42 ++++++++++++++++++++++
3 files changed, 68 insertions(+), 1 deletion(-)
diff --git a/assembly/src/main/feature/feature.xml b/assembly/src/main/feature/feature.xml
index 5f0a206..7e0baf0 100644
--- a/assembly/src/main/feature/feature.xml
+++ b/assembly/src/main/feature/feature.xml
@@ -455,11 +455,16 @@ org.apache.felix.eventadmin.IgnoreTimeout=org.apache.karaf.decanter.
<bundle>mvn:org.apache.karaf.decanter.processor/org.apache.karaf.decanter.processor.passthrough/${project.version}</bundle>
</feature>
- <feature name="decanter-processor-aggregate" version="${project.version}" description="Karaf Decanter Aggregate Processor">
+ <feature name="decanter-processor-aggregate-core" version="${project.version}" description="Karaf Decanter Aggregate Processor core">
<feature>decanter-common</feature>
<bundle>mvn:org.apache.karaf.decanter.processor/org.apache.karaf.decanter.processor.aggregate/${project.version}</bundle>
</feature>
+ <feature name="decanter-processor-aggregate" version="${project.version}" description="Karaf Decanter Aggregate Processor">
+ <configfile finalname="/etc/org.apache.karaf.decanter.processor.aggregate.cfg">mvn:org.apache.karaf.decanter.processor/org.apache.karaf.decanter.processor.aggregate/${project.version}/cfg</configfile>
+ <feature>decanter-processor-aggregate-core</feature>
+ </feature>
+
<feature name="decanter-alerting-core" version="${project.version}" description="Karaf Decanter Alerting core">
<feature>decanter-common</feature>
<bundle>mvn:org.apache.karaf.decanter.alerting/org.apache.karaf.decanter.alerting.service/${project.version}</bundle>
diff --git a/processor/aggregate/pom.xml b/processor/aggregate/pom.xml
index 6c15f60..5ac8e56 100644
--- a/processor/aggregate/pom.xml
+++ b/processor/aggregate/pom.xml
@@ -36,6 +36,26 @@
<build>
<plugins>
<plugin>
+ <groupId>org.codehaus.mojo</groupId>
+ <artifactId>build-helper-maven-plugin</artifactId>
+ <executions>
+ <execution>
+ <phase>package</phase>
+ <goals>
+ <goal>attach-artifact</goal>
+ </goals>
+ <configuration>
+ <artifacts>
+ <artifact>
+ <file>src/main/cfg/org.apache.karaf.decanter.processor.aggregate.cfg</file>
+ <type>cfg</type>
+ </artifact>
+ </artifacts>
+ </configuration>
+ </execution>
+ </executions>
+ </plugin>
+ <plugin>
<groupId>org.apache.felix</groupId>
<artifactId>maven-bundle-plugin</artifactId>
<inherited>true</inherited>
diff --git a/processor/aggregate/src/main/cfg/org.apache.karaf.decanter.processor.aggregate.cfg b/processor/aggregate/src/main/cfg/org.apache.karaf.decanter.processor.aggregate.cfg
new file mode 100644
index 0000000..22b7941
--- /dev/null
+++ b/processor/aggregate/src/main/cfg/org.apache.karaf.decanter.processor.aggregate.cfg
@@ -0,0 +1,42 @@
+################################################################################
+#
+# 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.
+#
+################################################################################
+
+#
+# Decanter Aggregate processor
+#
+
+#
+# Destination dispatcher topics where to send the aggregated events
+#
+#target.topics=decanter/process/aggregate
+
+#
+# Aggregation period in seconds
+#
+#period=60
+
+#
+# Flag defining if properties are appended (and prefixed) in the aggregated event (merge)
+# or overwritten.
+# If true, when aggregating, if a property already exists in the aggregator, the value is
+# overwritten.
+# If false, when aggregating, any property is prefixed with index and the event contains
+# all aggregated properties.
+#
+#overwrite=false
\ No newline at end of file