Package org.opennms.netmgt.icmp
Class ParallelPingResponseCallback
- java.lang.Object
-
- org.opennms.netmgt.icmp.ParallelPingResponseCallback
-
- All Implemented Interfaces:
PingResponseCallback
public class ParallelPingResponseCallback extends java.lang.Object implements PingResponseCallback
ParallelPingResponseCallback class.
- Version:
- $Id: $
- Author:
- Ben Reed
-
-
Constructor Summary
Constructors Constructor Description ParallelPingResponseCallback(int count)
Constructor for ParallelPingResponseCallback.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.List<java.lang.Number>
getResponseTimes()
getResponseTimesvoid
handleError(java.net.InetAddress address, EchoPacket request, java.lang.Throwable t)
handleErrorvoid
handleResponse(java.net.InetAddress address, EchoPacket response)
handleResponsevoid
handleTimeout(java.net.InetAddress address, EchoPacket request)
handleTimeoutvoid
rethrowError()
void
waitFor()
waitFor
-
-
-
Method Detail
-
handleError
public void handleError(java.net.InetAddress address, EchoPacket request, java.lang.Throwable t)
handleError
- Specified by:
handleError
in interfacePingResponseCallback
- Parameters:
address
- aInetAddress
object.request
- aEchoPacket
object.t
- aThrowable
object.
-
handleResponse
public void handleResponse(java.net.InetAddress address, EchoPacket response)
handleResponse
- Specified by:
handleResponse
in interfacePingResponseCallback
- Parameters:
address
- aInetAddress
object.response
- aEchoPacket
object.
-
handleTimeout
public void handleTimeout(java.net.InetAddress address, EchoPacket request)
handleTimeout
- Specified by:
handleTimeout
in interfacePingResponseCallback
- Parameters:
address
- aInetAddress
object.request
- TODO
-
waitFor
public void waitFor() throws java.lang.InterruptedException
waitFor
- Throws:
java.lang.InterruptedException
- if any.
-
rethrowError
public void rethrowError() throws java.lang.Exception
- Throws:
java.lang.Exception
-
getResponseTimes
public java.util.List<java.lang.Number> getResponseTimes()
getResponseTimes
- Returns:
- a
List
object.
-
-