net.java.dev.moskito.core.registry.filters
Class CategoryFilter

java.lang.Object
  extended by net.java.dev.moskito.core.registry.filters.CategoryFilter
All Implemented Interfaces:
IProducerFilter

public class CategoryFilter
extends Object
implements IProducerFilter

This simple filter filters by producer category. If the category is null all producers will be considered matching.

Author:
lrosenberg

Field Summary
private  String category
           
 
Constructor Summary
CategoryFilter(String aCategory)
           
 
Method Summary
 boolean doesFit(IStatsProducer producer)
          Called by ProducerRegistryAPI for each stored producer in order to determine whether the producer should be included in the result.
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

category

private String category
Constructor Detail

CategoryFilter

public CategoryFilter(String aCategory)
Method Detail

toString

public String toString()
Overrides:
toString in class Object

doesFit

public boolean doesFit(IStatsProducer producer)
Description copied from interface: IProducerFilter
Called by ProducerRegistryAPI for each stored producer in order to determine whether the producer should be included in the result.

Specified by:
doesFit in interface IProducerFilter
Parameters:
producer - the producer in question.
Returns:
true if the producer fits the filter criteria, false otherwise.


Copyright © 2006 MoSKito Project Team. All Rights Reserved.
MoSKito, the open source java monitoring framework