| 
Rice Pastry API | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectrice.selector.SelectionKeyHandler
rice.pastry.socket.SocketCollectionManager.SocketAccepter
Internal class which reads the greeting message off of a newly-accepted socket. This class determines whether this is a normal connection or a source-route request, and then hands the connection off to the appropriate handler (SocketManager or SourceRouteManager).
| Constructor Summary | |
SocketCollectionManager.SocketAccepter(java.nio.channels.SelectionKey key)
Constructor which accepts an incoming connection, represented by the selection key.  | 
|
| Method Summary | |
protected  void | 
acceptConnection(java.nio.channels.SelectionKey serverKey)
Accepts a new connection on the given key  | 
 void | 
close()
Method which closes down this socket manager, by closing the socket, cancelling the key and setting the key to be interested in nothing  | 
 void | 
read(java.nio.channels.SelectionKey key)
Reads from the socket attached to this connector.  | 
| Methods inherited from class rice.selector.SelectionKeyHandler | 
accept, connect, modifyKey, write | 
| Methods inherited from class java.lang.Object | 
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
| Constructor Detail | 
public SocketCollectionManager.SocketAccepter(java.nio.channels.SelectionKey key)
                                       throws java.io.IOException
key - The server accepting key for the channel
java.io.IOException - DESCRIBE THE EXCEPTION| Method Detail | 
public void close()
public void read(java.nio.channels.SelectionKey key)
read in class SelectionKeyHandlerkey - The selection key for this manager
protected void acceptConnection(java.nio.channels.SelectionKey serverKey)
                         throws java.io.IOException
serverKey - The server socket key
java.io.IOException - DESCRIBE THE EXCEPTION
  | 
Rice Pastry API | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||