Package org.jgroups.tests
Class Probe.UdpRequester
java.lang.Object
org.jgroups.tests.Probe.Requester
org.jgroups.tests.Probe.UdpRequester
- All Implemented Interfaces:
Runnable
- Enclosing class:
Probe
-
Field Summary
Fields -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedUdpRequester(SocketAddress dest, String request, String passcode, Consumer<ByteArray> on_rsp) -
Method Summary
Modifier and TypeMethodDescriptionprotected ByteArrayprotected booleanprotected <T extends Probe.Requester>
TsendRequest(byte[] request) protected <T extends Probe.Requester>
Tstart(InetAddress bind_addr, long timeout, int ttl) protected <T extends Probe.Requester>
Tstop()Methods inherited from class org.jgroups.tests.Probe.Requester
createRequest, run, setResponseHandler
-
Field Details
-
sock
-
buf
protected final byte[] buf
-
-
Constructor Details
-
UdpRequester
protected UdpRequester(SocketAddress dest, String request, String passcode, Consumer<ByteArray> on_rsp)
-
-
Method Details
-
start
protected <T extends Probe.Requester> T start(InetAddress bind_addr, long timeout, int ttl) throws IOException - Specified by:
startin classProbe.Requester- Throws:
IOException
-
stop
- Specified by:
stopin classProbe.Requester
-
isRunning
protected boolean isRunning()- Specified by:
isRunningin classProbe.Requester
-
sendRequest
- Specified by:
sendRequestin classProbe.Requester- Throws:
IOException
-
fetchResponse
- Specified by:
fetchResponsein classProbe.Requester
-