org.ow2.clif.analyze.statistics
Class DateFilter
java.lang.Object
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). |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
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)
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 boundend
- 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