Class LevelFilter
- java.lang.Object
- 
- com.ibm.websphere.logging.hpel.reader.filters.LevelFilter
 
- 
- All Implemented Interfaces:
- LogRecordHeaderFilter
 
 public class LevelFilter extends java.lang.Object implements LogRecordHeaderFilter Implementation of theLogRecordHeaderFilterinterface for filtering out records not falling into a specified Level range.
- 
- 
Constructor SummaryConstructors Constructor Description LevelFilter(int minLevel, int maxLevel)Creates a filter instance using integer values as the level range.LevelFilter(java.util.logging.Level minLevel, java.util.logging.Level maxLevel)Creates a filter instance with a specified Level range.
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanaccept(RepositoryLogRecordHeader record)Checks if record should be accepted into the list.
 
- 
- 
- 
Constructor Detail- 
LevelFilterpublic LevelFilter(int minLevel, int maxLevel)Creates a filter instance using integer values as the level range. These level integers are as defined in the java.util.logging.Level class.- Parameters:
- minLevel- lower boundary of the level range.
- maxLevel- upper boundary of the level range.
- See Also:
- Level
 
 - 
LevelFilterpublic LevelFilter(java.util.logging.Level minLevel, java.util.logging.Level maxLevel)Creates a filter instance with a specified Level range.- Parameters:
- minLevel- lower boundary of the level range. Value- nullmeans that lower boundary won't be checked.
- maxLevel- upper boundary of the level range. Value- nullmeans that upper boundary won't be checked.
 
 
- 
 - 
Method Detail- 
acceptpublic boolean accept(RepositoryLogRecordHeader record) Description copied from interface:LogRecordHeaderFilterChecks if record should be accepted into the list.- Specified by:
- acceptin interface- LogRecordHeaderFilter
- Parameters:
- record- log record header to check
- Returns:
- trueif record should be included in the list;- falseotherwise.
 
 
- 
 
-