com.sun.jini.reggie
Class RegistrarImpl.MulticastThread
java.lang.Object
java.lang.Thread
com.sun.jini.thread.InterruptedStatusThread
com.sun.jini.reggie.RegistrarImpl.MulticastThread
- All Implemented Interfaces:
- Runnable
- Enclosing class:
- RegistrarImpl
private class RegistrarImpl.MulticastThread
- extends InterruptedStatusThread
Multicast discovery request thread code.
Method Summary |
void |
interrupt()
|
private void |
retryFailedInterfaces()
Attempts to configure each interface contained in the
failedInterfaces list, removing it from the list if configuration
succeeds. |
void |
run()
|
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 |
requestAddr
private final InetAddress requestAddr
- Multicast group address used by multicast requests
socket
private final MulticastSocket socket
- Multicast socket to receive packets
failedInterfaces
private final List failedInterfaces
- Interfaces for which configuration failed
RegistrarImpl.MulticastThread
public RegistrarImpl.MulticastThread()
throws IOException
- Create a high priority daemon thread. Set up the socket now
rather than in run, so that we get any exception up front.
- Throws:
IOException
run
public void run()
- Specified by:
run
in interface Runnable
- Overrides:
run
in class Thread
interrupt
public void interrupt()
- Overrides:
interrupt
in class InterruptedStatusThread
retryFailedInterfaces
private void retryFailedInterfaces()
- Attempts to configure each interface contained in the
failedInterfaces list, removing it from the list if configuration
succeeds. The null value is used to indicate the default network
interface.
Copyright 2007-2010, multiple authors.
Licensed under the Apache License, Version 2.0, see the NOTICE file for attributions.