From 893fed794c20f8f9ce87e7e60f5ad9722a67b3bd Mon Sep 17 00:00:00 2001 From: Peter Mitchell Date: Tue, 4 Oct 2016 19:40:35 +0200 Subject: [PATCH] Add Stateful annotation to scripting processors Signed-off-by: Matt Burgess NIFI-2682: Added text to Stateful description for AbstractScriptProcessor --- .../nifi/processors/script/AbstractScriptProcessor.java | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/nifi-nar-bundles/nifi-scripting-bundle/nifi-scripting-processors/src/main/java/org/apache/nifi/processors/script/AbstractScriptProcessor.java b/nifi-nar-bundles/nifi-scripting-bundle/nifi-scripting-processors/src/main/java/org/apache/nifi/processors/script/AbstractScriptProcessor.java index 47eccb8671..56c6f0b862 100644 --- a/nifi-nar-bundles/nifi-scripting-bundle/nifi-scripting-processors/src/main/java/org/apache/nifi/processors/script/AbstractScriptProcessor.java +++ b/nifi-nar-bundles/nifi-scripting-bundle/nifi-scripting-processors/src/main/java/org/apache/nifi/processors/script/AbstractScriptProcessor.java @@ -16,6 +16,8 @@ */ package org.apache.nifi.processors.script; +import org.apache.nifi.annotation.behavior.Stateful; +import org.apache.nifi.components.state.Scope; import org.apache.nifi.logging.ComponentLog; import java.io.File; @@ -58,6 +60,8 @@ import org.apache.nifi.util.StringUtils; /** * This class contains variables and methods common to scripting processors */ +@Stateful(scopes = {Scope.LOCAL, Scope.CLUSTER}, + description = "Scripts can store and retrieve state using the State Management APIs. Consult the State Manager section of the Developer's Guide for more details.") public abstract class AbstractScriptProcessor extends AbstractSessionFactoryProcessor { public static final Relationship REL_SUCCESS = new Relationship.Builder()