net.sf.infrared.agent.transport
Interface Aggregator

All Known Implementing Classes:
BufferedAggregator, ForwardingAggregator

public interface Aggregator

Interface for implementing the different aggregation strategies


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
 

Method Detail

aggregate

public void aggregate(Statistics stats)
Aggregate statistics from a new request

Parameters:
stats -

flush

public void flush()
Flush the collected stats onto the Forwarder


setForwarder

public void setForwarder(Forwarder forwarder)
The forwarder to which the collected statistics need to be forwarded

Parameters:
forwarder -