public class JnaIcmpMessenger extends Object implements org.opennms.protocols.rt.Messenger<JnaPingRequest,JnaPingReply>, PingReplyListener
| Constructor and Description | 
|---|
JnaIcmpMessenger(int pingerId)  | 
| Modifier and Type | Method and Description | 
|---|---|
boolean | 
isV4Available()  | 
boolean | 
isV6Available()  | 
void | 
onPingReply(InetAddress address,
           EchoPacket packet)  | 
void | 
sendRequest(JnaPingRequest request)  | 
void | 
setAllowFragmentation(boolean allow)  | 
void | 
setTrafficClass(int tc)  | 
void | 
start(org.opennms.protocols.rt.ReplyHandler<JnaPingReply> callback)  | 
public boolean isV4Available()
public boolean isV6Available()
public void sendRequest(JnaPingRequest request)
sendRequest in interface org.opennms.protocols.rt.Messenger<JnaPingRequest,JnaPingReply>public void start(org.opennms.protocols.rt.ReplyHandler<JnaPingReply> callback)
start in interface org.opennms.protocols.rt.Messenger<JnaPingRequest,JnaPingReply>public void onPingReply(InetAddress address, EchoPacket packet)
onPingReply in interface PingReplyListenerpublic void setTrafficClass(int tc)
                     throws IOException
IOExceptionpublic void setAllowFragmentation(boolean allow)
                           throws IOException
IOExceptionCopyright © 2020. All rights reserved.