Add Stateful annotation to scripting processors

Signed-off-by: Matt Burgess <mattyb149@apache.org>

NIFI-2682: Added text to Stateful description for AbstractScriptProcessor
This commit is contained in:
Peter Mitchell 2016-10-04 19:40:35 +02:00 committed by Matt Burgess
parent a25b651da9
commit 893fed794c
1 changed files with 4 additions and 0 deletions

View File

@ -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()