SSF.OS.NetFlow.Filter
Class Filter

java.lang.Object
  |
  +--SSF.OS.NetFlow.Filter.Filter
All Implemented Interfaces:
BasicFilter

public class Filter
extends java.lang.Object
implements BasicFilter

It's composed by one or more "Terms". Between each term there is an "OR" operation. It also uses a decoderTable to store those decoders that it will use.
Configure the filter:(Both multiple decoders and multiple terms are allowed.

See Also:
Term, Factor, Range

Constructor Summary
Filter(Filter parentFilter, com.renesys.raceway.DML.Configuration cfg)
           
Filter(StreamInterface bPlayer, com.renesys.raceway.DML.Configuration cfg)
           
 
Method Summary
 void addDecoder(java.lang.String recordType, java.lang.Integer recordID)
          Now the recordID & recordType pair is known.
 boolean passFilter(FilterData record)
          each term of the filter is a "OR" phrase, so return true if any of the term says this record should pass
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Filter

public Filter(StreamInterface bPlayer,
              com.renesys.raceway.DML.Configuration cfg)
       throws com.renesys.raceway.DML.configException

Filter

public Filter(Filter parentFilter,
              com.renesys.raceway.DML.Configuration cfg)
       throws com.renesys.raceway.DML.configException
Method Detail

passFilter

public boolean passFilter(FilterData record)
each term of the filter is a "OR" phrase, so return true if any of the term says this record should pass

Specified by:
passFilter in interface BasicFilter

addDecoder

public void addDecoder(java.lang.String recordType,
                       java.lang.Integer recordID)
Now the recordID & recordType pair is known. Place the decoder in using the ID as key

Parameters:
recordType - the type of the record