You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@nifi.apache.org by ma...@apache.org on 2015/11/04 17:11:48 UTC

nifi git commit: NIFI-1103: Added InputRequirement annotation

Repository: nifi
Updated Branches:
  refs/heads/master 2b1d09312 -> fedbe4031


NIFI-1103: Added InputRequirement annotation


Project: http://git-wip-us.apache.org/repos/asf/nifi/repo
Commit: http://git-wip-us.apache.org/repos/asf/nifi/commit/fedbe403
Tree: http://git-wip-us.apache.org/repos/asf/nifi/tree/fedbe403
Diff: http://git-wip-us.apache.org/repos/asf/nifi/diff/fedbe403

Branch: refs/heads/master
Commit: fedbe403131bc556e3d2d44947b0be5c5a74f10d
Parents: 2b1d093
Author: Mark Payne <ma...@hotmail.com>
Authored: Wed Nov 4 11:11:33 2015 -0500
Committer: Mark Payne <ma...@hotmail.com>
Committed: Wed Nov 4 11:11:33 2015 -0500

----------------------------------------------------------------------
 .../apache/nifi/processors/standard/PutDistributedMapCache.java   | 3 +++
 1 file changed, 3 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/nifi/blob/fedbe403/nifi-nar-bundles/nifi-standard-bundle/nifi-standard-processors/src/main/java/org/apache/nifi/processors/standard/PutDistributedMapCache.java
----------------------------------------------------------------------
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 bc1fde5..addb278 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.'")