net.sf.infrared.agent.transport
Class ForwardingAggregator

java.lang.Object
  extended bynet.sf.infrared.agent.transport.ForwardingAggregator
All Implemented Interfaces:
Aggregator

public class ForwardingAggregator
extends Object
implements Aggregator

An implementation of the aggregator which just passes on the stats object to the forwarder without any processing


Constructor Summary
ForwardingAggregator()
           
 
Method Summary
 void aggregate(Statistics stats)
          Aggregate statistics from a new request
 void flush()
          Flush the collected stats onto the Forwarder
 void setForwarder(Forwarder forwarder)
          The forwarder to which the collected statistics need to be forwarded
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ForwardingAggregator

public ForwardingAggregator()
Method Detail

aggregate

public void aggregate(Statistics stats)
Description copied from interface: Aggregator
Aggregate statistics from a new request

Specified by:
aggregate in interface Aggregator
Parameters:
stats -

flush

public void flush()
Description copied from interface: Aggregator
Flush the collected stats onto the Forwarder

Specified by:
flush in interface Aggregator

setForwarder

public void setForwarder(Forwarder forwarder)
Description copied from interface: Aggregator
The forwarder to which the collected statistics need to be forwarded

Specified by:
setForwarder in interface Aggregator
Parameters:
forwarder -