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

Author:
Ben Reed

Constructor Summary
ParallelPingResponseCallback(int count)
           
 
Method Summary
 List<Number> getResponseTimes()
           
 void handleError(InetAddress address, org.opennms.protocols.icmp.ICMPEchoPacket packet, Throwable t)
           
 void handleResponse(InetAddress address, org.opennms.protocols.icmp.ICMPEchoPacket packet)
           
 void handleTimeout(InetAddress address, org.opennms.protocols.icmp.ICMPEchoPacket packet)
           
 void 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)
Method Detail

handleError

public void handleError(InetAddress address,
                        org.opennms.protocols.icmp.ICMPEchoPacket packet,
                        Throwable t)
Specified by:
handleError in interface PingResponseCallback

handleResponse

public void handleResponse(InetAddress address,
                           org.opennms.protocols.icmp.ICMPEchoPacket packet)
Specified by:
handleResponse in interface PingResponseCallback

handleTimeout

public void handleTimeout(InetAddress address,
                          org.opennms.protocols.icmp.ICMPEchoPacket packet)
Specified by:
handleTimeout in interface PingResponseCallback

waitFor

public void waitFor()
             throws InterruptedException
Throws:
InterruptedException

getResponseTimes

public List<Number> getResponseTimes()


Copyright ? 2008. All Rights Reserved.