public class UDPDiscoverySenderThread
extends java.lang.Object
implements java.lang.Runnable
| Constructor and Description |
|---|
UDPDiscoverySenderThread(java.lang.String discoveryAddress,
int discoveryPort,
java.lang.String myHostName,
int myPort,
java.util.ArrayList cacheNames)
Constructs the sender with the port to tell others to connect to.
|
| Modifier and Type | Method and Description |
|---|---|
protected java.util.ArrayList |
getCacheNames() |
void |
run()
Send a message.
|
protected void |
setCacheNames(java.util.ArrayList cacheNames) |
public UDPDiscoverySenderThread(java.lang.String discoveryAddress,
int discoveryPort,
java.lang.String myHostName,
int myPort,
java.util.ArrayList cacheNames)
On construction the sender will request that the other caches let it know their addresses.
discoveryAddress - host to broadcast todiscoveryPort - port to broadcast tomyHostName - host name we can be found atmyPort - port we are listening oncacheNames - List of strings of the names of the regiond participating.protected void setCacheNames(java.util.ArrayList cacheNames)
cacheNames - The cacheNames to set.protected java.util.ArrayList getCacheNames()
public void run()
run in interface java.lang.RunnableCopyright © 2002-2013 Apache Software Foundation. All Rights Reserved.