From 1e7eceee8433d59904551d14856d66498785fdf2 Mon Sep 17 00:00:00 2001 From: Andre F de Miranda Date: Tue, 27 Jun 2017 11:49:29 +1000 Subject: [PATCH] NIFI-4126 - Add SupportBatching, SideEffectFree and EventDriven annotations to ExtractGrok Signed-off-by: Pierre Villard This closes #1950. --- .../org/apache/nifi/processors/standard/ExtractGrok.java | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/nifi-nar-bundles/nifi-standard-bundle/nifi-standard-processors/src/main/java/org/apache/nifi/processors/standard/ExtractGrok.java b/nifi-nar-bundles/nifi-standard-bundle/nifi-standard-processors/src/main/java/org/apache/nifi/processors/standard/ExtractGrok.java index 6b566380be..8e20b9e0e8 100644 --- a/nifi-nar-bundles/nifi-standard-bundle/nifi-standard-processors/src/main/java/org/apache/nifi/processors/standard/ExtractGrok.java +++ b/nifi-nar-bundles/nifi-standard-bundle/nifi-standard-processors/src/main/java/org/apache/nifi/processors/standard/ExtractGrok.java @@ -21,6 +21,9 @@ import com.fasterxml.jackson.databind.ObjectMapper; import io.thekraken.grok.api.Grok; import io.thekraken.grok.api.Match; import io.thekraken.grok.api.exception.GrokException; +import org.apache.nifi.annotation.behavior.EventDriven; +import org.apache.nifi.annotation.behavior.SideEffectFree; +import org.apache.nifi.annotation.behavior.SupportsBatching; import org.apache.nifi.annotation.behavior.WritesAttribute; import org.apache.nifi.annotation.behavior.WritesAttributes; import org.apache.nifi.annotation.documentation.CapabilityDescription; @@ -61,7 +64,9 @@ import java.util.concurrent.BlockingQueue; import java.util.concurrent.LinkedBlockingQueue; import java.util.concurrent.TimeUnit; - +@EventDriven +@SupportsBatching +@SideEffectFree @Tags({"grok", "log", "text", "parse", "delimit", "extract"}) @CapabilityDescription("Evaluates one or more Grok Expressions against the content of a FlowFile, " + "adding the results as attributes or replacing the content of the FlowFile with a JSON " +