net.sourceforge.esw.service.log
Class FilterEngine
java.lang.Object
|
+--net.sourceforge.esw.util.SupportObject
|
+--net.sourceforge.esw.service.log.FilterEngine
- All Implemented Interfaces:
- IFilterEngine, ISupportObject, java.rmi.Remote, java.io.Serializable
- public class FilterEngine
- extends SupportObject
- implements IFilterEngine
One Implementation of a Filter Engine
There are two ways a generic filter engine could run. The first way is to
act like a screen, and only let through the data objects that pass the
filters that it is put through to the list of targets. This is most similar
to optical Filters, which only allow light of certain frequencies to pass
through. The second way is to Filter the potential targets based upon the
data and only allow the data to pass through to the targets that pass the
test. This is most similar to .
This class uses the second method.
- See Also:
- Serialized Form
Method Summary |
void |
addFilter(IFilter newFilter)
adds this filter to the list of filters for this engine |
boolean |
equals(java.lang.Object newObject)
|
IFilter |
getFilter(java.lang.String aName)
Returns the filter assigned this id
|
INode |
getFilters()
gets the list of filters that are run from this engine
This Needs more thinking... |
java.util.Iterator |
getLogs(INode checkDatum)
Returns an Iterator of the logs that should have this datum logged to them
|
protected void |
load()
|
IFilter |
removeFilter(java.lang.String aName)
Removes the filter assigned this id
|
IFilter |
replaceFilter(IFilter newFilter)
Replaces the filter assigned this id
|
protected void |
save()
|
java.lang.String |
toString()
|
Methods inherited from class net.sourceforge.esw.util.SupportObject |
addPropertyChangeListener, addPropertyChangeListener, addVetoableChangeListener, addVetoableChangeListener, firePropertyChange, firePropertyChange, fireVetoableChange, fireVetoableChange, getID, getProperty, getPropertySize, propertyKeys, removeProperty, removePropertyChangeListener, removePropertyChangeListener, removeVetoableChangeListener, removeVetoableChangeListener, setID, setProperty |
Methods inherited from class java.lang.Object |
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Methods inherited from interface net.sourceforge.esw.util.ISupportObject |
addPropertyChangeListener, addPropertyChangeListener, addVetoableChangeListener, addVetoableChangeListener, firePropertyChange, firePropertyChange, fireVetoableChange, fireVetoableChange, getID, getProperty, getPropertySize, propertyKeys, removeProperty, removePropertyChangeListener, removePropertyChangeListener, removeVetoableChangeListener, removeVetoableChangeListener, setID, setProperty |
filters
protected INode filters
FilterEngine
public FilterEngine()
getLogs
public java.util.Iterator getLogs(INode checkDatum)
- Returns an Iterator of the logs that should have this datum logged to them
Has a bug with the Remote reference system... fix for remote engine
from LogDissem
- Specified by:
getLogs
in interface IFilterEngine
- Returns:
- Iterator the iterator of ILogs
addFilter
public void addFilter(IFilter newFilter)
- adds this filter to the list of filters for this engine
- Specified by:
addFilter
in interface IFilterEngine
- Parameters:
newFilter
- the new filter to be added
getFilter
public IFilter getFilter(java.lang.String aName)
- Returns the filter assigned this id
- Specified by:
getFilter
in interface IFilterEngine
- Returns:
- IFilter the filter or null;
removeFilter
public IFilter removeFilter(java.lang.String aName)
- Removes the filter assigned this id
- Specified by:
removeFilter
in interface IFilterEngine
- Returns:
- IFilter the removed filter or null;
replaceFilter
public IFilter replaceFilter(IFilter newFilter)
- Replaces the filter assigned this id
- Specified by:
replaceFilter
in interface IFilterEngine
- Parameters:
newFilter
- new filter- Returns:
- IFilter the replaced filter or null;
getFilters
public INode getFilters()
- gets the list of filters that are run from this engine
This Needs more thinking...
- Specified by:
getFilters
in interface IFilterEngine
- Returns:
- INode the iterator of IFilters
equals
public boolean equals(java.lang.Object newObject)
- Overrides:
equals
in class java.lang.Object
toString
public java.lang.String toString()
- Overrides:
toString
in class java.lang.Object
save
protected void save()
load
protected void load()
Copyright 2002 Free Software Foundation. All Rights Reserved.