|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.jcs.utils.discovery.UDPDiscoverySenderThread
public class UDPDiscoverySenderThread
Used to periodically broadcast our location to other caches that might be listening.
| Constructor Summary | |
|---|---|
UDPDiscoverySenderThread(UDPDiscoveryAttributes attributes,
ArrayList<String> cacheNames)
Constructs the sender with the port to tell others to connect to. |
|
| Method Summary | |
|---|---|
protected ArrayList<String> |
getCacheNames()
|
void |
run()
Send a message. |
protected void |
setCacheNames(ArrayList<String> cacheNames)
|
protected void |
shutdown()
Issues a remove broadcast to the others. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public UDPDiscoverySenderThread(UDPDiscoveryAttributes attributes,
ArrayList<String> cacheNames)
On construction the sender will request that the other caches let it know their addresses.
attributes - host, port, etc.cacheNames - List of strings of the names of the region participating.| Method Detail |
|---|
protected void setCacheNames(ArrayList<String> cacheNames)
cacheNames - The cacheNames to set.protected ArrayList<String> getCacheNames()
public void run()
run in interface Runnableprotected void shutdown()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||