org.jacorb.orb.iiop
Class IIOPListener.Acceptor

java.lang.Object
  extended byjava.lang.Thread
      extended byorg.jacorb.orb.etf.ListenerBase.Acceptor
          extended byorg.jacorb.orb.iiop.IIOPListener.Acceptor
All Implemented Interfaces:
java.lang.Runnable
Enclosing class:
IIOPListener

protected class IIOPListener.Acceptor
extends ListenerBase.Acceptor


Field Summary
protected  java.net.ServerSocket serverSocket
           
protected  boolean terminated
           
 
Fields inherited from class java.lang.Thread
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
 
Constructor Summary
IIOPListener.Acceptor()
           
 
Method Summary
protected  java.net.ServerSocket createServerSocket()
          Template method that creates the server socket.
protected  void deliverConnection(java.net.Socket socket)
           
 IIOPAddress getLocalAddress()
           
 void init()
           
 void run()
           
protected  void setup(java.net.Socket socket)
          Template method that sets up the socket right after the connection has been established.
 void terminate()
          Terminates this Acceptor by closing the ServerSocket.
 
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
 

Field Detail

serverSocket

protected java.net.ServerSocket serverSocket

terminated

protected boolean terminated
Constructor Detail

IIOPListener.Acceptor

public IIOPListener.Acceptor()
Method Detail

init

public void init()
Specified by:
init in class ListenerBase.Acceptor

run

public void run()
Specified by:
run in interface java.lang.Runnable
Specified by:
run in class ListenerBase.Acceptor

terminate

public void terminate()
Terminates this Acceptor by closing the ServerSocket.

Specified by:
terminate in class ListenerBase.Acceptor

getLocalAddress

public IIOPAddress getLocalAddress()

createServerSocket

protected java.net.ServerSocket createServerSocket()
Template method that creates the server socket.


setup

protected void setup(java.net.Socket socket)
              throws java.io.IOException
Template method that sets up the socket right after the connection has been established. Subclass implementations must call super.setup() first.

Throws:
java.io.IOException

deliverConnection

protected void deliverConnection(java.net.Socket socket)