|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.jcs.auxiliary.lateral.socket.tcp.discovery.UDPDiscoveryService
This service creates a listener that can create lateral caches and add them to the no wait list.
It also creates a sender that periodically broadcasts its availability.
The sender also broadcasts a request for other caches to broadcast their addresses.
Constructor Summary | |
UDPDiscoveryService(LateralCacheAttributes lca)
|
Method Summary | |
protected void |
addNoWait(LateralCacheNoWait noWait)
This adds nowaits to a facde for the region name. |
boolean |
addNoWaitFacade(LateralCacheNoWaitFacade facade,
java.lang.String cacheName)
Adds a nowait facade under this cachename. |
protected java.util.ArrayList |
getCacheNames()
Get all the cache names we have facades for. |
LateralCacheAttributes |
getLca()
|
protected void |
serviceRequestBroadcast()
Send a passive broadcast in response to a request broadcast. |
void |
setLca(LateralCacheAttributes lca)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public UDPDiscoveryService(LateralCacheAttributes lca)
lca
- Method Detail |
public boolean addNoWaitFacade(LateralCacheNoWaitFacade facade, java.lang.String cacheName)
When a broadcast is received from the UDP Discovery receiver, for each cacheName in the message, the add no wait will be called here. To add a no wait, the facade is looked up for this cache name.
facade
- cacheName
-
protected void addNoWait(LateralCacheNoWait noWait)
noWait
- protected void serviceRequestBroadcast()
protected java.util.ArrayList getCacheNames()
public void setLca(LateralCacheAttributes lca)
lca
- The lca to set.public LateralCacheAttributes getLca()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |