org.opennms.netmgt.ping
Class SinglePingResponseCallback
java.lang.Object
org.opennms.netmgt.ping.SinglePingResponseCallback
- All Implemented Interfaces:
- PingResponseCallback
public class SinglePingResponseCallback
- extends Object
- implements PingResponseCallback
- Author:
- Ben Reed, Mathew Brozowski
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SinglePingResponseCallback
public SinglePingResponseCallback(InetAddress host)
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.