mirror of https://github.com/apache/nifi.git
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:
parent
a25b651da9
commit
893fed794c
|
@ -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()
|
||||
|
|
Loading…
Reference in New Issue