org.opennms.netmgt.ping
Class ParallelPingResponseCallback

java.lang.Object
  extended by org.opennms.netmgt.ping.ParallelPingResponseCallback
All Implemented Interfaces:
PingResponseCallback

public class ParallelPingResponseCallback
extends Object
implements PingResponseCallback

ParallelPingResponseCallback class.

Version:
$Id: $
Author:
Ben Reed

Constructor Summary
ParallelPingResponseCallback(int count)
          Constructor for ParallelPingResponseCallback.
 
Method Summary
 List<Number> getResponseTimes()
          getResponseTimes
 void handleError(InetAddress address, org.opennms.protocols.icmp.ICMPEchoPacket packet, Throwable t)
          handleError
 void handleResponse(InetAddress address, org.opennms.protocols.icmp.ICMPEchoPacket packet)
          handleResponse
 void handleTimeout(InetAddress address, org.opennms.protocols.icmp.ICMPEchoPacket packet)
          handleTimeout
 void waitFor()
          waitFor
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ParallelPingResponseCallback

public ParallelPingResponseCallback(int count)

Constructor for ParallelPingResponseCallback.

Parameters:
count - a int.
Method Detail

handleError

public void handleError(InetAddress address,
                        org.opennms.protocols.icmp.ICMPEchoPacket packet,
                        Throwable t)

handleError

Specified by:
handleError in interface PingResponseCallback
Parameters:
address - a InetAddress object.
packet - a ICMPEchoPacket object.
t - a Throwable object.

handleResponse

public void handleResponse(InetAddress address,
                           org.opennms.protocols.icmp.ICMPEchoPacket packet)

handleResponse

Specified by:
handleResponse in interface PingResponseCallback
Parameters:
address - a InetAddress object.
packet - a ICMPEchoPacket object.

handleTimeout

public void handleTimeout(InetAddress address,
                          org.opennms.protocols.icmp.ICMPEchoPacket packet)

handleTimeout

Specified by:
handleTimeout in interface PingResponseCallback
Parameters:
address - a InetAddress object.
packet - a ICMPEchoPacket object.

waitFor

public void waitFor()
             throws InterruptedException

waitFor

Throws:
InterruptedException - if any.

getResponseTimes

public List<Number> getResponseTimes()

getResponseTimes

Returns:
a List object.


Copyright © 2011. All Rights Reserved.