| Constructor and Description |
|---|
DefaultCepRule(java.util.List<EventPattern> eventPatterns)
Creates a new rule with the specified
EventPatterns and a default CepJob. |
DefaultCepRule(java.util.List<EventPattern> eventPatterns,
CepJob<IObservableComplexEventPattern> job)
Creates a new rule with the specified
EventPatterns and CepJob. |
| Modifier and Type | Method and Description |
|---|---|
void |
addEventPattern(EventPattern eventPattern)
Associates a single
EventPattern with the rule. |
void |
addEventPatterns(java.util.List<EventPattern> eventPatterns)
Associates a list of
EventPatterns with the rule. |
java.util.List<EventPattern> |
getEventPatterns() |
CepJob<IObservableComplexEventPattern> |
getJob() |
public DefaultCepRule(java.util.List<EventPattern> eventPatterns, CepJob<IObservableComplexEventPattern> job)
EventPatterns and CepJob.eventPatterns - the EventPatterns the rule should be activated uponjob - the CepJob to be executed when patterns get matchedpublic DefaultCepRule(java.util.List<EventPattern> eventPatterns)
EventPatterns and a default CepJob.eventPatterns - the EventPatterns the rule should be activated uponpublic void addEventPatterns(java.util.List<EventPattern> eventPatterns)
EventPatterns with the rule.eventPatterns - the patterns to be included into the rulepublic void addEventPattern(EventPattern eventPattern)
EventPattern with the rule.eventPattern - the pattern to be included into the rulepublic java.util.List<EventPattern> getEventPatterns()
getEventPatterns in interface ICepRuleEventPatterns of the rulepublic CepJob<IObservableComplexEventPattern> getJob()