uk.org.iscream.cms.server.filter
Class FilterThread

java.lang.Object
  extended byjava.lang.Thread
      extended byuk.org.iscream.cms.server.filter.FilterThread
All Implemented Interfaces:
Runnable

public class FilterThread
extends Thread

Handle an incoming packet as a separate thread. Passes the data through various plugins, then passes it on to the parent filter. Now grabs data from a single queue, rather than waiting to be contacted.

Version:
$Id: FilterThread.java,v 1.40 2004/08/01 10:40:59 tdb Exp $
Author:
$Author: tdb $

Field Summary
private  Logger _logger
          This holds a reference to the system logger that is being used.
private  String _name
          This is the friendly identifier of the component this class is running in.
(package private)  Queue _queue
          The Queue object
private  ReferenceManager _refman
          A reference to the reference manager in use
private  XMLCache _xmlCache
          A reference to the XMLCache in use
 String REVISION
          The current CVS revision of this class
 
Fields inherited from class java.lang.Thread
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
 
Constructor Summary
FilterThread(Queue queue)
          Constructs an instance of a FilterThread
 
Method Summary
 void run()
          Runs the thread, getting data from the Queue and sending it on to the parent filter.
 String toString()
          Overrides the Object.toString() method to provide clean logging (every class should have this).
 
Methods inherited from class java.lang.Thread
activeCount, checkAccess, countStackFrames, currentThread, destroy, dumpStack, enumerate, getContextClassLoader, getName, getPriority, getThreadGroup, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, setContextClassLoader, setDaemon, setName, setPriority, sleep, sleep, start, stop, stop, suspend, yield
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

REVISION

public final String REVISION
The current CVS revision of this class

See Also:
Constant Field Values

_queue

Queue _queue
The Queue object


_name

private String _name
This is the friendly identifier of the component this class is running in. eg, a Filter may be called "filter1", If this class does not have an owning component, a name from the configuration can be placed here. This name could also be changed to null for utility classes.


_logger

private Logger _logger
This holds a reference to the system logger that is being used.


_refman

private ReferenceManager _refman
A reference to the reference manager in use


_xmlCache

private XMLCache _xmlCache
A reference to the XMLCache in use

Constructor Detail

FilterThread

public FilterThread(Queue queue)
Constructs an instance of a FilterThread

Parameters:
queue - the Queue this filter is using
Method Detail

run

public void run()
Runs the thread, getting data from the Queue and sending it on to the parent filter.


toString

public String toString()
Overrides the Object.toString() method to provide clean logging (every class should have this). This uses the uk.org.iscream.cms.util.NameFormat class to format the toString()

Returns:
the name of this class and its CVS revision


Copyright © 2000-2003 i-scream. All Rights Reserved.