|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.jcs.utils.discovery.UDPDiscoveryReceiver
public class 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 handle request broadcasts |
Constructor Summary | |
---|---|
UDPDiscoveryReceiver(UDPDiscoveryService service,
String multicastAddressString,
int multicastPort)
Constructor for the LateralUDPReceiver object. |
Method Summary | |
---|---|
int |
getCnt()
|
void |
run()
Main processing method for the LateralUDPReceiver object |
void |
setCnt(int cnt)
|
void |
shutdown()
Shuts down the socket. |
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, String multicastAddressString, int multicastPort) throws IOException
We determine out own host using InetAddress
service
- multicastAddressString
- multicastPort
-
IOException
Method Detail |
---|
public Object waitForMessage() throws IOException
IOException
public void run()
run
in interface Runnable
public void setCnt(int cnt)
cnt
- The cnt to set.public int getCnt()
public void shutdown()
shutdown
in interface IShutdownObserver
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |