Public Member Functions | Protected Attributes

alma.acs.logging.table.reduction.AntennaRule Class Reference

Inheritance diagram for alma.acs.logging.table.reduction.AntennaRule:
alma.acs.logging.table.reduction.ReductionRule

List of all members.

Public Member Functions

 AntennaRule (ILogEntry logEntry)
boolean applyRule (final ILogEntry logToReduce)
String getReducedItems ()
ILogEntry getReducedLog ()
boolean isReducingLogs ()
boolean isReducible ()

Protected Attributes

final boolean reducible

Detailed Description

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.

Author:
acaproni

Constructor & Destructor Documentation

alma.acs.logging.table.reduction.AntennaRule.AntennaRule ( ILogEntry  logEntry  ) 

Constructor

Parameters:
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.


Member Function Documentation

String alma.acs.logging.table.reduction.AntennaRule.getReducedItems (  ) 

Format and return the names of all the antenna names matched by this reduction rule

Returns:
A string with all the antenna names

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.

Returns:
A formatted String with all the reduced items

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]
boolean alma.acs.logging.table.reduction.AntennaRule.isReducingLogs (  )  [virtual]
Returns:
true if this rule is actually reducing logs

Implements alma.acs.logging.table.reduction.ReductionRule.


Member Data Documentation

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().


The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Enumerations Properties