|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.lang.Thread
x10.net.ServerDispatchProxy
ServerDispatchProxy is the server-side proxy which dispatches events to and recieves commands from the SocketController assigned to this object. A new ServerDispatchProxy is constructed for each SocketController that connects to a ControllerServer.
| Field Summary |
| Fields inherited from class java.lang.Thread |
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY |
| Constructor Summary | |
ServerDispatchProxy(java.net.Socket s,
Controller c)
ServerDispatchProxy constructs a new ServerDispatchProxy for the specified Controller to the SocketController on the other end of the specified Socket. |
|
| Method Summary | |
void |
allLightsOff(UnitEvent event)
allLightsOff recieves the UnitListener event to be dispatched to the SocketController |
void |
allLightsOn(UnitEvent event)
allLightsOn recieves the UnitListener event to be dispatched to the SocketController |
void |
allUnitsOff(UnitEvent event)
allUnitsOff recieves the UnitListener event to be dispatched to the SocketController |
void |
run()
run reads Commands from the SocketController and propogates them along to the local Controller object. |
void |
unitBright(UnitEvent event)
unitBright recieves the UnitListener event to be dispatched to the SocketController |
void |
unitDim(UnitEvent event)
unitDim recieves the UnitListener event to be dispatched to the SocketController |
void |
unitOff(UnitEvent event)
unitOff recieves the UnitListener event to be dispatched to the SocketController |
void |
unitOn(UnitEvent event)
unitOn recieves the UnitListener event to be dispatched to the SocketController |
| 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 |
| Constructor Detail |
public ServerDispatchProxy(java.net.Socket s,
Controller c)
throws java.io.IOException
s - the Socket to the connected SocketControllerc - the Controller that is being shared across the network
with the SocketController.
java.io.IOException - if an error occurs obtaining streams to/from
the connected SocketController.| Method Detail |
public void run()
run in interface java.lang.Runnablepublic void allUnitsOff(UnitEvent event)
allUnitsOff in interface UnitListenerevent - the event to be dispatchedpublic void allLightsOff(UnitEvent event)
allLightsOff in interface UnitListenerevent - the event to be dispatchedpublic void allLightsOn(UnitEvent event)
allLightsOn in interface UnitListenerevent - the event to be dispatchedpublic void unitOn(UnitEvent event)
unitOn in interface UnitListenerevent - the event to be dispatchedpublic void unitOff(UnitEvent event)
unitOff in interface UnitListenerevent - the event to be dispatchedpublic void unitDim(UnitEvent event)
unitDim in interface UnitListenerevent - the event to be dispatchedpublic void unitBright(UnitEvent event)
unitBright in interface UnitListenerevent - the event to be dispatched
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||