org.ow2.clif.analyze.statistics
Class DateFilter

java.lang.Object
  extended by org.ow2.clif.analyze.statistics.DateFilter
All Implemented Interfaces:
java.io.Serializable, EventFilter

public class DateFilter
extends java.lang.Object
implements EventFilter

Helper class for filtering blade events according their date.

Author:
Guy Vachet
See Also:
Serialized Form

Constructor Summary
DateFilter(long lower, long upper)
          Creates a new blade event filter selecting events whose date is between the given bounds (inclusive).
 
Method Summary
 boolean accept(BladeEvent event)
           
 long getMaxTime()
           
 long getMinTime()
           
 java.lang.String toString()
           
 void updateBounds(long start, long end)
          reduce the elapsed time window to be analyzed
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

DateFilter

public DateFilter(long lower,
                  long upper)
Creates a new blade event filter selecting events whose date is between the given bounds (inclusive). Any bound can be negative and at least the upper bound is greater than the lower one.

Parameters:
lower - the lower date bound (inclusive)
upper - the upper date bound (inclusive)
Method Detail

getMinTime

public long getMinTime()

getMaxTime

public long getMaxTime()

updateBounds

public void updateBounds(long start,
                         long end)
reduce the elapsed time window to be analyzed

Parameters:
start - gap from the lower bound
end - in order to define the range with the start parameter

accept

public boolean accept(BladeEvent event)
Specified by:
accept in interface EventFilter

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object