|
Rice Pastry API | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--rice.pastry.wire.SelectorManager
This class is the class which handles the selector, and listens for activity. When activity occurs, it figures out who is interested in what has happened, and hands off to that object.
Field Summary | |
int |
SELECT_WAIT_TIME
|
Constructor Summary | |
SelectorManager(rice.pastry.wire.WirePastryNode node)
Constructor. |
Method Summary | |
java.nio.channels.Selector |
getSelector()
Returns the selector used by this SelectorManager. |
void |
kill()
To be used for testing purposes only - kills the socket client by shutting down all outgoing sockets and stopping the client thread. |
void |
run()
This method starts the datagram manager listening for incoming datagrams. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public int SELECT_WAIT_TIME
Constructor Detail |
public SelectorManager(rice.pastry.wire.WirePastryNode node)
node
- The pastry node this SocketManager is servingMethod Detail |
public java.nio.channels.Selector getSelector()
public void run()
public void kill()
|
Rice Pastry API | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |