|
|||||||||||
| 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(ITCPLateralCacheAttributes lca,
ICompositeCacheManager cacheMgr)
|
|
| 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. |
ITCPLateralCacheAttributes |
getTcpLateralCacheAttributes()
|
protected void |
serviceRequestBroadcast()
Send a passive broadcast in response to a request broadcast. |
void |
setTcpLateralCacheAttributes(ITCPLateralCacheAttributes lca)
|
void |
shutdown()
Tells the observer that the observable has received a shutdown command. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public UDPDiscoveryService(ITCPLateralCacheAttributes lca,
ICompositeCacheManager cacheMgr)
lca - ITCPLateralCacheAttributescacheMgr - | 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 setTcpLateralCacheAttributes(ITCPLateralCacheAttributes lca)
lca - The lca to set.public ITCPLateralCacheAttributes getTcpLateralCacheAttributes()
public void shutdown()
IShutdownObserver
shutdown in interface IShutdownObserver
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||