org.indi.server
Class Acceptor

java.lang.Object
  extended by org.indi.reactor.SimpleEventHandler
      extended by org.indi.reactor.Acceptor
          extended by org.indi.server.Acceptor
All Implemented Interfaces:
org.indi.reactor.EventHandler

public class Acceptor
extends org.indi.reactor.Acceptor

Acceptor used for passive connection estabishment. Initializes incomming client connections.

Author:
Dirk Hünniger

Field Summary
 
Fields inherited from class org.indi.reactor.Acceptor
factory
 
Fields inherited from class org.indi.reactor.SimpleEventHandler
channel, reactor, registeredOperations
 
Method Summary
 java.util.Collection<ClientHandler> getClientHandlers()
           
 void onAccepted(org.indi.reactor.EventHandler h)
          Called when a new connection has been estabished and new ClientHanlder has been created and associated with that connection.
 
Methods inherited from class org.indi.reactor.Acceptor
onAccept
 
Methods inherited from class org.indi.reactor.SimpleEventHandler
channel, onClose, onConnect, onRead, onWrite, register
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

onAccepted

public void onAccepted(org.indi.reactor.EventHandler h)
                throws java.nio.channels.ClosedChannelException,
                       java.io.IOException
Called when a new connection has been estabished and new ClientHanlder has been created and associated with that connection.

Overrides:
onAccepted in class org.indi.reactor.Acceptor
Throws:
java.nio.channels.ClosedChannelException
java.io.IOException

getClientHandlers

public java.util.Collection<ClientHandler> getClientHandlers()
Returns:
the collection of currently know ClientHandlers


Copyright © 2008. All Rights Reserved.