|
||||||||||
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 cacheNames)
Constructs the sender with the port to tell others to connect to. |
Method Summary | |
---|---|
protected ArrayList |
getCacheNames()
|
void |
run()
Send a message. |
protected void |
setCacheNames(ArrayList 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 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 cacheNames)
cacheNames
- The cacheNames to set.protected ArrayList getCacheNames()
public void run()
run
in interface Runnable
protected void shutdown()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |