public class AntennaRule extends ReductionRule
Note that the reduction applies only to the first occurrence of an antenna name in the log message. If the log message contains more then one antenna name, then the reduction does not work.
| Modifier and Type | Field and Description |
|---|---|
protected boolean |
reducible
reducible is true if the initial message
contains an antenna name and therefore can reduce other log
messages. |
initialLog, placeHolder| Constructor and Description |
|---|
AntennaRule(ILogEntry logEntry)
Constructor
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
applyRule(ILogEntry logToReduce)
applyRule compares the log and the message and check if the log can be reduced.
|
java.lang.String |
getReducedItems()
Format and return the sorted names of all the antenna names matched
by this reduction rule
|
ILogEntry |
getReducedLog()
Return a comma separated list of the reduced items after running the
reduction rule over a set of logs.
|
boolean |
isReducible() |
boolean |
isReducingLogs() |
protected final boolean reducible
reducible is true if the initial message
contains an antenna name and therefore can reduce other log
messages.public AntennaRule(ILogEntry logEntry)
initialMessage - The message to be compared with other logs for reductionpublic boolean applyRule(ILogEntry logToReduce)
ReductionRuleapplyRule in class ReductionRulelogToReduce - The log to reducetrue if the logs is reduced by this rule
false otherwisepublic java.lang.String getReducedItems()
public ILogEntry getReducedLog()
ReductionRulegetReducedLog in class ReductionRulepublic boolean isReducingLogs()
isReducingLogs in class ReductionRuletrue if this rule is actually reducing logspublic boolean isReducible()
isReducible in class ReductionRule