|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjava.lang.Thread
sophware.home.net.NetworkHomeServer
public class NetworkHomeServer
NetworkHomeServer provides a network bridge for a
Home. This server can be used in conjuction
with the NetworkHomeTransceiver to provide access to any
home powerline interface on one machine to any other machine on the same
network.
NetworkHomeTransceiver,
Home| Nested Class Summary | |
|---|---|
class |
NetworkHomeServer.NetworkHomeClient
|
| Nested classes/interfaces inherited from class java.lang.Thread |
|---|
java.lang.Thread.State, java.lang.Thread.UncaughtExceptionHandler |
| Field Summary |
|---|
| Fields inherited from class java.lang.Thread |
|---|
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY |
| Constructor Summary | |
|---|---|
NetworkHomeServer(Home home,
int port)
Instantiates a NetworkHomeServer for the given
Home listening on the given port. |
|
| Method Summary | |
|---|---|
void |
handleHomeEvent(HomeEvent event)
Called when a HomeEvent is received. |
void |
objectAdded(java.lang.Object dev)
Called when a Object is added to the Home. |
void |
objectRemoved(java.lang.Object dev)
Called when a Object is removed from the Home. |
void |
run()
Runnable implementation to accept connections from remote clients |
void |
send(java.lang.Object obj)
|
| Methods inherited from class java.lang.Thread |
|---|
activeCount, checkAccess, countStackFrames, currentThread, destroy, dumpStack, enumerate, getAllStackTraces, getContextClassLoader, getDefaultUncaughtExceptionHandler, getId, getName, getPriority, getStackTrace, getState, getThreadGroup, getUncaughtExceptionHandler, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, setContextClassLoader, setDaemon, setDefaultUncaughtExceptionHandler, setName, setPriority, setUncaughtExceptionHandler, 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 NetworkHomeServer(Home home,
int port)
throws HomeException
NetworkHomeServer for the given
Home listening on the given port.
home - the Home that will be exposed on the networkport - the port upon which this server is listening
HomeException| Method Detail |
|---|
public void objectAdded(java.lang.Object dev)
HomeListenerObject is added to the Home.
objectAdded in interface HomeListenerdev - the Object that was added.public void objectRemoved(java.lang.Object dev)
HomeListenerObject is removed from the Home.
objectRemoved in interface HomeListenerdev - the Object that was added.public void handleHomeEvent(HomeEvent event)
HomeListenerHomeEvent is received.
handleHomeEvent in interface HomeListenerevent - the HomeEvent that occurred.public void send(java.lang.Object obj)
public void run()
run in interface java.lang.Runnablerun in class java.lang.Thread
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||