|
|||||||||||
| 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.UDPDiscoveryReceiver
Receives UDP Discovery messages.
| Nested Class Summary | |
class |
UDPDiscoveryReceiver.MessageHandler
Separate thread run when a command comes into the UDPDiscoveryReceiver. |
| Field Summary | |
protected UDPDiscoveryService |
service
Service to get cache names and hande request broadcasts |
| Constructor Summary | |
UDPDiscoveryReceiver(UDPDiscoveryService service,
java.lang.String multicastAddressString,
int multicastPort,
ICompositeCacheManager cacheMgr)
Constructor for the LateralUDPReceiver object. |
|
| Method Summary | |
int |
getCnt()
|
void |
run()
Main processing method for the LateralUDPReceiver object |
void |
setCnt(int cnt)
|
void |
shutdown()
Tells the observer that the observable has received a shutdown command. |
java.lang.Object |
waitForMessage()
Highly unreliable. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
protected UDPDiscoveryService service
| Constructor Detail |
public UDPDiscoveryReceiver(UDPDiscoveryService service,
java.lang.String multicastAddressString,
int multicastPort,
ICompositeCacheManager cacheMgr)
throws java.io.IOException
We determine out own host using InetAddress
service - multicastAddressString - multicastPort - cacheMgr -
java.io.IOException| Method Detail |
public java.lang.Object waitForMessage()
throws java.io.IOException
java.io.IOExceptionpublic void run()
run in interface java.lang.Runnablepublic void setCnt(int cnt)
cnt - The cnt to set.public int getCnt()
public void shutdown()
IShutdownObserver
shutdown in interface IShutdownObserver
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||