|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--java.lang.Thread | +--ix.util.CatchingThread | +--ix.util.IPC.ObjectStreamNameServer
A Thread that acts as a name-server on a specified port.
Field Summary | |
(package private) IPC.ServiceAddress |
addr
|
(package private) IPC.DestinationTable |
nameTable
|
(package private) java.net.ServerSocket |
servSock
|
(package private) IPC.ObjectStreamCommunicationStrategy |
strategy
|
(package private) TextAreaFrame |
textFrame
|
Fields inherited from class ix.util.CatchingThread |
innerRunnable |
Fields inherited from class java.lang.Thread |
inheritableThreadLocals, MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY, threadLocals |
Constructor Summary | |
IPC.ObjectStreamNameServer(IPC.ObjectStreamCommunicationStrategy strategy,
IPC.ServiceAddress addr)
|
Method Summary | |
protected void |
clientServiceLoop(IPC.ObjectStreamConnection connection)
|
protected void |
handleMessage(IPC.ObjectStreamConnection connection,
java.lang.Object contents)
|
void |
innerRun()
Calls the run() method of the innerRunnable passed to the constructor, if innerRunnable is non-null, otherwise does nothing. |
protected void |
recordRegistration(IPC.ObjectStreamConnection connection,
java.lang.String name,
IPC.ServiceAddress addr)
|
protected void |
serveClientOn(IPC.ObjectStreamConnection connection)
|
protected void |
transcript(java.lang.String line)
|
Methods inherited from class ix.util.CatchingThread |
handleException, reportException, run |
Methods inherited from class java.lang.Thread |
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
IPC.ObjectStreamCommunicationStrategy strategy
IPC.ServiceAddress addr
IPC.DestinationTable nameTable
TextAreaFrame textFrame
java.net.ServerSocket servSock
Constructor Detail |
public IPC.ObjectStreamNameServer(IPC.ObjectStreamCommunicationStrategy strategy, IPC.ServiceAddress addr)
Method Detail |
public void innerRun()
CatchingThread
innerRun
in class CatchingThread
protected void serveClientOn(IPC.ObjectStreamConnection connection)
protected void clientServiceLoop(IPC.ObjectStreamConnection connection)
protected void handleMessage(IPC.ObjectStreamConnection connection, java.lang.Object contents)
protected void recordRegistration(IPC.ObjectStreamConnection connection, java.lang.String name, IPC.ServiceAddress addr)
protected void transcript(java.lang.String line)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |