NIFI-796 Adjusting ControlRate documentation to reflect that a long is used instead of an integer.

This commit is contained in:
Aldrin Piri 2015-08-17 11:51:10 -04:00
parent c0dad8d1d8
commit 740b09b182
1 changed files with 2 additions and 2 deletions

View File

@ -79,7 +79,7 @@ public class ControlRate extends AbstractProcessor {
public static final PropertyDescriptor RATE_CONTROL_ATTRIBUTE_NAME = new PropertyDescriptor.Builder()
.name("Rate Controlled Attribute")
.description("The name of an attribute whose values build toward the rate limit if Rate Control Criteria is set to 'attribute value'. "
+ "The value of the attribute referenced by this property must be a positive integer, or the FlowFile will be routed to failure. "
+ "The value of the attribute referenced by this property must be a positive long, or the FlowFile will be routed to failure. "
+ "This value is ignored if Rate Control Criteria is not set to 'attribute value'. Changing this value resets the rate counters.")
.required(false)
.addValidator(StandardValidators.NON_EMPTY_VALIDATOR)
@ -249,7 +249,7 @@ public class ControlRate extends AbstractProcessor {
}
if (!POSITIVE_LONG_PATTERN.matcher(attributeValue).matches()) {
logger.error("routing {} to 'failure' because FlowFile attribute {} has a value of {}, which is not a positive integer",
logger.error("routing {} to 'failure' because FlowFile attribute {} has a value of {}, which is not a positive long",
new Object[]{flowFile, rateControlAttributeName, attributeValue});
session.transfer(flowFile, REL_FAILURE);
return;