com.ibm.websphere.logging.hpel.reader.filters

Class ThreadIDFilter

  1. java.lang.Object
  2. extended bycom.ibm.websphere.logging.hpel.reader.filters.ThreadIDFilter
All implemented interfaces:
LogRecordHeaderFilter

  1. public class ThreadIDFilter
  2. extends java.lang.Object
  3. implements LogRecordHeaderFilter
Implementation of the LogRecordHeaderFilter interface for filtering out records not written by a thread with a given thread ID.

Constructor Summary

Constructor and Description
ThreadIDFilter(int threadID)
Creates a filter instance with a specified thread ID.

Method Summary

Modifier and Type Method and Description
  1. boolean
accept(RepositoryLogRecordHeader record)
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

Constructor Detail

ThreadIDFilter

  1. public ThreadIDFilter(int threadID)
Creates a filter instance with a specified thread ID.
Parameters:
threadID - ID that each record's thread ID will be compared to

Method Detail

accept

  1. public boolean accept(RepositoryLogRecordHeader record)
Description copied from interface: LogRecordHeaderFilter
Checks if record should be accepted into the list.
Specified by:
Parameters:
record - log record header to check
Returns:
true if record should be included in the list; false otherwise.