org.opennms.netmgt.ping
Class SinglePingResponseCallback

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

public class SinglePingResponseCallback
extends Object
implements PingResponseCallback

Author:
Ben Reed, Mathew Brozowski

Constructor Summary
SinglePingResponseCallback(InetAddress host)
           
 
Method Summary
 Long getResponseTime()
           
 void handleError(InetAddress address, org.opennms.protocols.icmp.ICMPEchoPacket pr, Throwable t)
           
 void handleResponse(InetAddress address, org.opennms.protocols.icmp.ICMPEchoPacket packet)
           
 void handleTimeout(InetAddress address, org.opennms.protocols.icmp.ICMPEchoPacket packet)
           
 void info(String msg)
           
 void info(String msg, Throwable t)
           
 void waitFor()
           
 void waitFor(long timeout)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SinglePingResponseCallback

public SinglePingResponseCallback(InetAddress host)
Method Detail

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

handleError

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

waitFor

public void waitFor(long timeout)
             throws InterruptedException
Throws:
InterruptedException

waitFor

public void waitFor()
             throws InterruptedException
Throws:
InterruptedException

getResponseTime

public Long getResponseTime()

info

public void info(String msg)

info

public void info(String msg,
                 Throwable t)


Copyright ? 2008. All Rights Reserved.