net.sf.infrared.agent.transport
Interface FlushPolicy

All Known Implementing Classes:
DoNothingFlushPolicy, PeriodicFlushPolicy

public interface FlushPolicy

Defines the interface for different flush policies, to provide a mechanism for pushing data to the central store.


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
 

Method Detail

activate

public boolean activate()
Trigger to activate the flush policy


shutDown

public boolean shutDown()
Shutdown


setAggregator

public void setAggregator(Aggregator aggregator)
Aggregator which needs to be informed to flush the data.

Parameters:
aggregator -

isActive

public boolean isActive()
Returns if the flush policy is active.

Returns: