org.objectweb.tribe.channel.tcp
Class TcpServerAccepterThread

java.lang.Object
  extended byjava.lang.Thread
      extended byorg.objectweb.tribe.channel.tcp.TcpServerAccepterThread
All Implemented Interfaces:
java.lang.Runnable

public class TcpServerAccepterThread
extends java.lang.Thread

This class defines a TcpServerAccepterThread.

It simply accepts connections and put them in the connection pool.

Version:
1.0
Author:
Emmanuel Cecchet

Field Summary
 
Fields inherited from class java.lang.Thread
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
 
Constructor Summary
TcpServerAccepterThread(AbstractServerChannel serverSocket, java.util.HashMap channels, java.util.HashMap readerThreads, java.util.HashMap keyBuffers)
          Creates a new TcpServerAccepterThread object
 
Method Summary
 void kill()
          Terminates this TcpServerAccepterThread.
 void run()
          Accept new connections and put them in the pool
 
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
 

Constructor Detail

TcpServerAccepterThread

public TcpServerAccepterThread(AbstractServerChannel serverSocket,
                               java.util.HashMap channels,
                               java.util.HashMap readerThreads,
                               java.util.HashMap keyBuffers)
Creates a new TcpServerAccepterThread object

Parameters:
serverSocket - serverSocket to read from
channels - TcpPool channel hashmap to update when a new connection is created.
Method Detail

run

public void run()
Accept new connections and put them in the pool


kill

public void kill()
Terminates this TcpServerAccepterThread.



Copyright © 2004 - ObjectWeb Consortium - All Rights Reserved.