com.sun.jini.reggie
Class RegistrarImpl.UnicastThread

java.lang.Object
  extended by java.lang.Thread
      extended by com.sun.jini.thread.InterruptedStatusThread
          extended by com.sun.jini.reggie.RegistrarImpl.UnicastThread
All Implemented Interfaces:
Runnable
Enclosing class:
RegistrarImpl

private class RegistrarImpl.UnicastThread
extends InterruptedStatusThread

Unicast discovery request thread code.


Nested Class Summary
 
Nested classes/interfaces inherited from class java.lang.Thread
Thread.State, Thread.UncaughtExceptionHandler
 
Field Summary
private  ServerSocket listen
          Server socket to accepts connections on.
 int port
          Listen port
 
Fields inherited from class java.lang.Thread
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
 
Constructor Summary
RegistrarImpl.UnicastThread(int port)
          Create a daemon thread.
 
Method Summary
 void interrupt()
           
 void run()
           
 
Methods inherited from class com.sun.jini.thread.InterruptedStatusThread
hasBeenInterrupted
 
Methods inherited from class java.lang.Thread
activeCount, checkAccess, clone, countStackFrames, currentThread, destroy, dumpStack, enumerate, getAllStackTraces, getContextClassLoader, getDefaultUncaughtExceptionHandler, getId, getName, getPriority, getStackTrace, getState, getThreadGroup, getUncaughtExceptionHandler, holdsLock, 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
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

listen

private ServerSocket listen
Server socket to accepts connections on.


port

public int port
Listen port

Constructor Detail

RegistrarImpl.UnicastThread

public RegistrarImpl.UnicastThread(int port)
                            throws IOException
Create a daemon thread. Set up the socket now rather than in run, so that we get any exception up front.

Throws:
IOException
Method Detail

run

public void run()
Specified by:
run in interface Runnable
Overrides:
run in class Thread

interrupt

public void interrupt()
Overrides:
interrupt in class InterruptedStatusThread


Copyright 2007-2010, multiple authors.
Licensed under the Apache License, Version 2.0, see the NOTICE file for attributions.