From fedbe403131bc556e3d2d44947b0be5c5a74f10d Mon Sep 17 00:00:00 2001 From: Mark Payne Date: Wed, 4 Nov 2015 11:11:33 -0500 Subject: [PATCH] NIFI-1103: Added InputRequirement annotation --- .../nifi/processors/standard/PutDistributedMapCache.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/nifi-nar-bundles/nifi-standard-bundle/nifi-standard-processors/src/main/java/org/apache/nifi/processors/standard/PutDistributedMapCache.java b/nifi-nar-bundles/nifi-standard-bundle/nifi-standard-processors/src/main/java/org/apache/nifi/processors/standard/PutDistributedMapCache.java index bc1fde5b11..addb2789b5 100644 --- a/nifi-nar-bundles/nifi-standard-bundle/nifi-standard-processors/src/main/java/org/apache/nifi/processors/standard/PutDistributedMapCache.java +++ b/nifi-nar-bundles/nifi-standard-bundle/nifi-standard-processors/src/main/java/org/apache/nifi/processors/standard/PutDistributedMapCache.java @@ -28,6 +28,8 @@ import java.util.Set; import org.apache.commons.lang3.StringUtils; import org.apache.nifi.annotation.behavior.EventDriven; +import org.apache.nifi.annotation.behavior.InputRequirement; +import org.apache.nifi.annotation.behavior.InputRequirement.Requirement; import org.apache.nifi.annotation.behavior.SupportsBatching; import org.apache.nifi.annotation.behavior.WritesAttribute; import org.apache.nifi.annotation.documentation.CapabilityDescription; @@ -54,6 +56,7 @@ import org.apache.nifi.processor.util.StandardValidators; @EventDriven @SupportsBatching @Tags({"map", "cache", "put", "distributed"}) +@InputRequirement(Requirement.INPUT_REQUIRED) @CapabilityDescription("Gets the content of a FlowFile and puts it to a distributed map cache, using a cache key " + "computed from FlowFile attributes. If the cache already contains the entry and the cache update strategy is " + "'keep original' the entry is not replaced.'")