Public Member Functions | |
AntennaRule (ILogEntry logEntry) | |
boolean | applyRule (final ILogEntry logToReduce) |
String | getReducedItems () |
ILogEntry | getReducedLog () |
boolean | isReducingLogs () |
boolean | isReducible () |
Protected Attributes | |
final boolean | reducible |
The reduction rule for the antenna. All the logs with the same message but for different antennae are replaced by a single log in the table that reports all the antennae that generate the messages.
For example the 2 following messages
Are replaced by
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.
alma.acs.logging.table.reduction.AntennaRule.AntennaRule | ( | ILogEntry | logEntry | ) |
Constructor
initialMessage | The message to be compared with other logs for reduction |
References com.cosylab.logging.engine.log.ILogEntry.getField(), alma.acs.logging.table.reduction.ReductionRule.placeHolder, and alma.acs.logging.table.reduction.AntennaRule.reducible.
boolean alma.acs.logging.table.reduction.AntennaRule.applyRule | ( | final ILogEntry | logToReduce | ) | [virtual] |
String alma.acs.logging.table.reduction.AntennaRule.getReducedItems | ( | ) |
Format and return the names of all the antenna names matched by this reduction rule
Referenced by alma.acs.logging.table.reduction.AntennaRule.getReducedLog().
ILogEntry alma.acs.logging.table.reduction.AntennaRule.getReducedLog | ( | ) | [virtual] |
Return a comma separated list of the reduced items after running the reduction rule over a set of logs.
Implements alma.acs.logging.table.reduction.ReductionRule.
References com.cosylab.logging.engine.log.ILogEntry.getAdditionalData(), com.cosylab.logging.engine.log.ILogEntry.getField(), alma.acs.logging.table.reduction.AntennaRule.getReducedItems(), and alma.acs.logging.table.reduction.ReductionRule.initialLog.
boolean alma.acs.logging.table.reduction.AntennaRule.isReducible | ( | ) | [virtual] |
Implements alma.acs.logging.table.reduction.ReductionRule.
References alma.acs.logging.table.reduction.AntennaRule.reducible.
boolean alma.acs.logging.table.reduction.AntennaRule.isReducingLogs | ( | ) | [virtual] |
true
if this rule is actually reducing logs Implements alma.acs.logging.table.reduction.ReductionRule.
final boolean alma.acs.logging.table.reduction.AntennaRule.reducible [protected] |
reducible
is true
if the initial message contains an antenna name and therefore can reduce other log messages.
Referenced by alma.acs.logging.table.reduction.AntennaRule.AntennaRule(), alma.acs.logging.table.reduction.AntennaRule.applyRule(), and alma.acs.logging.table.reduction.AntennaRule.isReducible().