groovyx.gpars.remote
Class BroadcastDiscovery

java.lang.Object
  extended by groovyx.gpars.remote.BroadcastDiscovery

public class BroadcastDiscovery
extends java.lang.Object


Field Summary
private  java.net.InetSocketAddress address
           
private static java.net.InetAddress group
           
private static long MAGIC
           
private static int PORT
           
private  java.lang.Thread receiveThread
           
private  java.lang.Thread sendThread
           
private  java.net.MulticastSocket socket
           
private  boolean stopped
           
private  java.util.UUID uid
           
 
Constructor Summary
BroadcastDiscovery(java.util.UUID uid, java.net.InetSocketAddress address)
           
 
Method Summary
protected  void onDiscovery(java.util.UUID uuid, java.net.SocketAddress address)
           
 void start()
           
 void stop()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

group

private static java.net.InetAddress group

PORT

private static final int PORT
See Also:
Constant Field Values

MAGIC

private static final long MAGIC
See Also:
Constant Field Values

uid

private final java.util.UUID uid

address

private final java.net.InetSocketAddress address

sendThread

private java.lang.Thread sendThread

receiveThread

private java.lang.Thread receiveThread

stopped

private volatile boolean stopped

socket

private java.net.MulticastSocket socket
Constructor Detail

BroadcastDiscovery

public BroadcastDiscovery(java.util.UUID uid,
                          java.net.InetSocketAddress address)
Method Detail

start

public void start()

stop

public void stop()

onDiscovery

protected void onDiscovery(java.util.UUID uuid,
                           java.net.SocketAddress address)

Copyright © 2008–2010 Václav Pech. All Rights Reserved.