org.apache.catalina.cluster.tcp
Class TcpReplicationThread

java.lang.Object
  extended byjava.lang.Thread
      extended byorg.apache.catalina.cluster.tcp.WorkerThread
          extended byorg.apache.catalina.cluster.tcp.TcpReplicationThread
All Implemented Interfaces:
java.lang.Runnable

public class TcpReplicationThread
extends WorkerThread

A worker thread class which can drain channels and echo-back the input. Each instance is constructed with a reference to the owning thread pool object. When started, the thread loops forever waiting to be awakened to service the channel associated with a SelectionKey object. The worker is tasked by calling its serviceChannel() method with a SelectionKey object. The serviceChannel() method stores the key reference in the thread object then calls notify() to wake it up. When the channel has been drained, the worker thread returns itself to its parent pool.


Field Summary
 
Fields inherited from class org.apache.catalina.cluster.tcp.WorkerThread
doRun, pool
 
Fields inherited from class java.lang.Thread
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
 
Method Summary
 void run()
           
 
Methods inherited from class org.apache.catalina.cluster.tcp.WorkerThread
close, getPool, setPool
 
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, toString, yield
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Method Detail

run

public void run()


Copyright © 2000-2005 Apache Software Foundation. All Rights Reserved.