etm.contrib.aggregation.log
Class Log4jAggregator

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

public class Log4jAggregator
extends AbstractLogAggregator

The Log4jAggregator uses Log4J 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.log4j.Logger log
           
 
Fields inherited from class etm.contrib.aggregation.log.AbstractLogAggregator
ctx, DEFAULT_LOG_NAME, delegate, filter, formatter, logName
 
Constructor Summary
Log4jAggregator(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.log4j.Logger log
Constructor Detail

Log4jAggregator

public Log4jAggregator(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.