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 PingReplyListener
public void setTrafficClass(int tc) throws IOException
IOException
public void setAllowFragmentation(boolean allow) throws IOException
IOException
Copyright © 2021. All rights reserved.