org.codehaus.gpars

groovyx.gpars.remote
[Java] Class BroadcastDiscovery

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

@java.lang.SuppressWarningsgroup = InetAddress.getByName("230.0.0.239");
public class BroadcastDiscovery

Field Summary
private static long MAGIC

private static int PORT

private java.net.InetSocketAddress address

private static java.net.InetAddress group

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
java.lang.Object#wait(long, int), java.lang.Object#wait(long), java.lang.Object#wait(), java.lang.Object#equals(java.lang.Object), java.lang.Object#toString(), java.lang.Object#hashCode(), java.lang.Object#getClass(), java.lang.Object#notify(), java.lang.Object#notifyAll()
 

Field Detail

MAGIC

private static final long MAGIC


PORT

private static final int PORT


address

private final java.net.InetSocketAddress address


group

@java.lang.SuppressWarningsgroup = null;
private static java.net.InetAddress group


receiveThread

private java.lang.Thread receiveThread


sendThread

private java.lang.Thread sendThread


socket

private java.net.MulticastSocket socket


stopped

private boolean stopped


uid

private final java.util.UUID uid


 
Constructor Detail

BroadcastDiscovery

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


 
Method Detail

onDiscovery

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


start

public void start()


stop

public void stop()


 

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