net.sf.infrared.agent.transport
Class DoNothingFlushPolicy

java.lang.Object
  extended bynet.sf.infrared.agent.transport.DoNothingFlushPolicy
All Implemented Interfaces:
FlushPolicy

public class DoNothingFlushPolicy
extends Object
implements FlushPolicy

Implementation of a flush policy that does nothing. It is used with a ForwardingAggregator


Constructor Summary
DoNothingFlushPolicy()
           
 
Method Summary
 boolean activate()
          Trigger to activate the flush policy
 boolean isActive()
          Returns if the flush policy is active.
 void setAggregator(Aggregator aggregator)
          Aggregator which needs to be informed to flush the data.
 boolean shutDown()
          Shutdown
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DoNothingFlushPolicy

public DoNothingFlushPolicy()
Method Detail

activate

public boolean activate()
Description copied from interface: FlushPolicy
Trigger to activate the flush policy

Specified by:
activate in interface FlushPolicy

shutDown

public boolean shutDown()
Description copied from interface: FlushPolicy
Shutdown

Specified by:
shutDown in interface FlushPolicy

setAggregator

public void setAggregator(Aggregator aggregator)
Description copied from interface: FlushPolicy
Aggregator which needs to be informed to flush the data.

Specified by:
setAggregator in interface FlushPolicy
Parameters:
aggregator -

isActive

public boolean isActive()
Description copied from interface: FlushPolicy
Returns if the flush policy is active.

Specified by:
isActive in interface FlushPolicy
Returns: