Class JPPFMulticastReceiver.Receiver

java.lang.Object
java.lang.Thread
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.
  • Constructor Details

    • Receiver

      public 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 Details

    • run

      public void run()
      Specified by:
      run in interface Runnable
      Overrides:
      run in class Thread
    • 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.