|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.restlet.engine.connector.Controller
org.restlet.engine.connector.ConnectionController
org.restlet.engine.connector.ServerConnectionController
public class ServerConnectionController
Controls the IO work of parent server helper and manages its connections. Listens on a server socket channel for incoming connections.
Field Summary |
---|
Fields inherited from class org.restlet.engine.connector.Controller |
---|
helper, overloaded, running |
Constructor Summary | |
---|---|
ServerConnectionController(ServerConnectionHelper helper)
Constructor. |
Method Summary | |
---|---|
void |
await()
Awaits for the controller to be effectively started. |
protected void |
doInit()
Initializes the controller before entering the control loop. |
protected ServerConnectionHelper |
getHelper()
Returns the parent server helper. |
protected void |
onSelected(java.nio.channels.SelectionKey key)
Called back when a ready key has been selected. |
Methods inherited from class org.restlet.engine.connector.ConnectionController |
---|
controlConnection, controlConnections, createSelector, doRelease, doRun, getNewRegistrations, getSelector, getUpdatedRegistrations, onWokeup, register, registerKeys, selectKeys, shutdown, updateKeys, wakeup |
Methods inherited from class org.restlet.engine.connector.Controller |
---|
getWorkerService, isOverloaded, isRunning, run, setOverloaded |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface java.lang.Runnable |
---|
run |
Constructor Detail |
---|
public ServerConnectionController(ServerConnectionHelper helper)
helper
- The target server helper.Method Detail |
---|
public void await() throws java.lang.InterruptedException
java.lang.InterruptedException
protected ServerConnectionHelper getHelper()
getHelper
in class Controller
protected void onSelected(java.nio.channels.SelectionKey key) throws java.io.IOException
ConnectionController
onSelected
in class ConnectionController
key
- The selected key selected.
java.io.IOException
protected void doInit()
Controller
doInit
in class ConnectionController
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |