|
org.codehaus.gpars | |||||||
FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object groovyx.gpars.remote.BroadcastDiscovery
@SuppressWarnings({"MagicNumber"}) public class BroadcastDiscovery extends java.lang.Object
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), java.lang.Object#wait(), java.lang.Object#wait(long, int), 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 |
---|
private static final long MAGIC
private static final int PORT
private final java.net.InetSocketAddress address
@SuppressWarnings({"StaticNonFinalField"}) 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 final java.util.UUID uid
Constructor Detail |
---|
public BroadcastDiscovery(java.util.UUID uid, java.net.InetSocketAddress address)
Method Detail |
---|
protected void onDiscovery(java.util.UUID uuid, java.net.SocketAddress address)
public void start()
public void stop()
Copyright © 2008–2010 Václav Pech. All Rights Reserved.