org.opennms.netmgt.icmp.jna
Class JnaIcmpMessenger

java.lang.Object
  extended by org.opennms.netmgt.icmp.jna.JnaIcmpMessenger
All Implemented Interfaces:
PingReplyListener, org.opennms.protocols.rt.Messenger<JnaPingRequest,JnaPingReply>

public class JnaIcmpMessenger
extends Object
implements org.opennms.protocols.rt.Messenger<JnaPingRequest,JnaPingReply>, PingReplyListener

Author:
brozow

Constructor Summary
JnaIcmpMessenger(int pingerId)
           
 
Method Summary
 boolean isV4Available()
           
 boolean isV6Available()
           
 void onPingReply(InetAddress address, EchoPacket packet)
           
 void sendRequest(JnaPingRequest request)
           
 void start(Queue<JnaPingReply> replyQueue)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JnaIcmpMessenger

public JnaIcmpMessenger(int pingerId)
                 throws Exception
Throws:
Exception
Method Detail

isV4Available

public boolean isV4Available()

isV6Available

public boolean isV6Available()

sendRequest

public void sendRequest(JnaPingRequest request)
Specified by:
sendRequest in interface org.opennms.protocols.rt.Messenger<JnaPingRequest,JnaPingReply>

start

public void start(Queue<JnaPingReply> replyQueue)
Specified by:
start in interface org.opennms.protocols.rt.Messenger<JnaPingRequest,JnaPingReply>

onPingReply

public void onPingReply(InetAddress address,
                        EchoPacket packet)
Specified by:
onPingReply in interface PingReplyListener


Copyright © 2011. All Rights Reserved.