ix.util
Class IPC.ObjectStreamNameServer

java.lang.Object
  |
  +--java.lang.Thread
        |
        +--ix.util.CatchingThread
              |
              +--ix.util.IPC.ObjectStreamNameServer
All Implemented Interfaces:
java.lang.Runnable
Enclosing class:
IPC

public static class IPC.ObjectStreamNameServer
extends CatchingThread

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
, activeCount, checkAccess, countStackFrames, currentThread, destroy, dumpStack, enumerate, getContextClassLoader, getName, getPriority, getThreadGroup, 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
 

Field Detail

strategy

IPC.ObjectStreamCommunicationStrategy strategy

addr

IPC.ServiceAddress addr

nameTable

IPC.DestinationTable nameTable

textFrame

TextAreaFrame textFrame

servSock

java.net.ServerSocket servSock
Constructor Detail

IPC.ObjectStreamNameServer

public IPC.ObjectStreamNameServer(IPC.ObjectStreamCommunicationStrategy strategy,
                                  IPC.ServiceAddress addr)
Method Detail

innerRun

public void innerRun()
Description copied from class: CatchingThread
Calls the run() method of the innerRunnable passed to the constructor, if innerRunnable is non-null, otherwise does nothing.
Overrides:
innerRun in class CatchingThread

serveClientOn

protected void serveClientOn(IPC.ObjectStreamConnection connection)

clientServiceLoop

protected void clientServiceLoop(IPC.ObjectStreamConnection connection)

handleMessage

protected void handleMessage(IPC.ObjectStreamConnection connection,
                             java.lang.Object contents)

recordRegistration

protected void recordRegistration(IPC.ObjectStreamConnection connection,
                                  java.lang.String name,
                                  IPC.ServiceAddress addr)

transcript

protected void transcript(java.lang.String line)