public class Criteria extends Object
| Modifier and Type | Field and Description |
|---|---|
private FlowFilePolicy |
flowFilePolicy |
private Map<String,Rule> |
rules |
| Constructor and Description |
|---|
Criteria() |
Criteria(FlowFilePolicy flowFilePolicy,
List<Rule> ruleList) |
| Modifier and Type | Method and Description |
|---|---|
void |
addRule(Rule rule)
Adds the specified rule to the end of the rule collection.
|
void |
deleteRule(Rule rule)
Deletes the specified rule from the rule collection.
|
FlowFilePolicy |
getFlowFilePolicy()
Gets the flow file policy.
|
Rule |
getRule(String ruleId)
Gets the specified rule from the rule collection.
|
List<String> |
getRuleOrder()
Returns the rule ordering.
|
List<Rule> |
getRules()
Returns a listing of all Rules.
|
void |
reorder(List<String> newRuleOrder)
Reorders the rule collection.
|
void |
setFlowFilePolicy(FlowFilePolicy flowFilePolicy)
Sets the flow file policy.
|
private FlowFilePolicy flowFilePolicy
public Criteria()
public Criteria(FlowFilePolicy flowFilePolicy, List<Rule> ruleList)
public void addRule(Rule rule)
rule - the rule to addpublic Rule getRule(String ruleId)
ruleId - the identifier of the rule to getpublic void deleteRule(Rule rule)
rule - the rule to deletepublic List<String> getRuleOrder()
public void reorder(List<String> newRuleOrder)
newRuleOrder - the new rule order to use by keypublic void setFlowFilePolicy(FlowFilePolicy flowFilePolicy)
flowFilePolicy - the new policypublic FlowFilePolicy getFlowFilePolicy()
Copyright © 2016 Apache NiFi Project. All rights reserved.