org.jppf.comm.discovery
Class JPPFMulticastReceiver.Receiver

java.lang.Object
  extended by java.lang.Thread
      extended by org.jppf.comm.discovery.JPPFMulticastReceiver.Receiver
All Implemented Interfaces:
Runnable
Enclosing class:
JPPFMulticastReceiver

public class JPPFMulticastReceiver.Receiver
extends Thread

Instances of this class attempt to receive broadcast connection information from a multicast socket bound to a specified address.


Nested Class Summary
 
Nested classes/interfaces inherited from class java.lang.Thread
Thread.State, Thread.UncaughtExceptionHandler
 
Field Summary
 
Fields inherited from class java.lang.Thread
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
 
Constructor Summary
JPPFMulticastReceiver.Receiver(InetAddress addr, int port)
          Initialize this Receiver with the specified address and port.
 
Method Summary
 JPPFConnectionInformation getInfo()
          Get the connection information retrieved by the multicast socket.
 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, 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
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

JPPFMulticastReceiver.Receiver

public JPPFMulticastReceiver.Receiver(InetAddress addr,
                                      int port)
Initialize this Receiver with the specified address and port.

Parameters:
addr - address the multicast socket is bound to.
port - port the multicast socket listens to.
Method Detail

run

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

getInfo

public JPPFConnectionInformation getInfo()
Get the connection information retrieved by the multicast socket.

Returns:
a JPPFConnectionInformation instance or null if no information could be retrieved.


Copyright © 2005-2010 JPPF Team.