Public Member Functions

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

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

List of all members.

Public Member Functions

 SourceAntennaRule (ILogEntry initialLog)
boolean isReducible ()
boolean applyRule (ILogEntry logToReduce)
ILogEntry getReducedLog ()
boolean isReducingLogs ()

Detailed Description

The reduction rule for the logs having the same log message but different sources. For example two logs having the very same message "Antenna in position" but sources DA41 and DV01 will be reduced to a single log having the sources (DA41 and DV01 in this example) as additional data and the source replaced by the string (SourceAntennaRule#reducedSource). The message remains the same.

Author:
acaproni

Constructor & Destructor Documentation

alma.acs.logging.table.reduction.SourceAntennaRule.SourceAntennaRule ( ILogEntry  initialLog  ) 

Member Function Documentation

ILogEntry alma.acs.logging.table.reduction.SourceAntennaRule.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(), and alma.acs.logging.table.reduction.ReductionRule.initialLog.

boolean alma.acs.logging.table.reduction.SourceAntennaRule.isReducible (  )  [virtual]
boolean alma.acs.logging.table.reduction.SourceAntennaRule.isReducingLogs (  )  [virtual]
Returns:
true if this rule is actually reducing logs

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


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