org.ow2.clif.datacollector.lib
Class GenericFilter

java.lang.Object
  extended by org.ow2.clif.datacollector.lib.GenericFilter
All Implemented Interfaces:
java.io.Serializable, DataCollectorFilter

public class GenericFilter
extends java.lang.Object
implements DataCollectorFilter

Author:
Emmanuel Varoquaux
See Also:
Serialized Form

Constructor Summary
GenericFilter(boolean acceptActionEvents, boolean acceptAlarmEvents, boolean acceptLifeCycleEvents, boolean acceptProbeEvents)
           
 
Method Summary
 boolean accept(ActionEvent action)
           
 boolean accept(AlarmEvent alarm)
           
 boolean accept(LifeCycleEvent event)
           
 boolean accept(ProbeEvent measure)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GenericFilter

public GenericFilter(boolean acceptActionEvents,
                     boolean acceptAlarmEvents,
                     boolean acceptLifeCycleEvents,
                     boolean acceptProbeEvents)
Method Detail

accept

public boolean accept(ActionEvent action)
Specified by:
accept in interface DataCollectorFilter

accept

public boolean accept(AlarmEvent alarm)
Specified by:
accept in interface DataCollectorFilter

accept

public boolean accept(LifeCycleEvent event)
Specified by:
accept in interface DataCollectorFilter

accept

public boolean accept(ProbeEvent measure)
Specified by:
accept in interface DataCollectorFilter