etm.contrib.aggregation.log
Class CommonsLoggingAggregator

java.lang.Object
  extended by etm.contrib.aggregation.log.AbstractLogAggregator
      extended by etm.contrib.aggregation.log.CommonsLoggingAggregator
All Implemented Interfaces:
Aggregator

public class CommonsLoggingAggregator
extends AbstractLogAggregator

The CommonsLoggingAggregator uses jakarta commons logging to log raw measurement results. Raw results will be logged at level INFO.

See AbstractLogAggregator for performance impact and further details/configurations.

Version:
$Revision: 195 $
Author:
void.fm

Field Summary
protected  org.apache.commons.logging.Log log
           
 
Fields inherited from class etm.contrib.aggregation.log.AbstractLogAggregator
ctx, DEFAULT_LOG_NAME, delegate, filter, formatter, logName
 
Constructor Summary
CommonsLoggingAggregator(Aggregator aAggregator)
           
 
Method Summary
 AggregatorMetaData getMetaData()
          Returns detailed information about the aggregator chain.
protected  void logMeasurement(EtmPoint aPoint)
          Logs a raw measurement result.
 void start()
          Lifecycle method, will be called after all Aggregator instances are initialized by calling Aggregator.init(etm.core.monitor.EtmMonitorContext) and before the EtmMonitor instance will becomes available.
 
Methods inherited from class etm.contrib.aggregation.log.AbstractLogAggregator
add, flush, init, render, reset, reset, setFilterPattern, setFormatter, setFormatterClass, setLogName, stop
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

log

protected org.apache.commons.logging.Log log
Constructor Detail

CommonsLoggingAggregator

public CommonsLoggingAggregator(Aggregator aAggregator)
Method Detail

logMeasurement

protected void logMeasurement(EtmPoint aPoint)
Description copied from class: AbstractLogAggregator
Logs a raw measurement result.

Specified by:
logMeasurement in class AbstractLogAggregator
Parameters:
aPoint - The point to be logged.

getMetaData

public AggregatorMetaData getMetaData()
Description copied from interface: Aggregator
Returns detailed information about the aggregator chain.

Returns:
The AggregatorMetaData.

start

public void start()
Description copied from interface: Aggregator
Lifecycle method, will be called after all Aggregator instances are initialized by calling Aggregator.init(etm.core.monitor.EtmMonitorContext) and before the EtmMonitor instance will becomes available.

Specified by:
start in interface Aggregator
Overrides:
start in class AbstractLogAggregator


Copyright © 2004,2005, 2006, 2007 void.fm. All Rights Reserved.