|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.opennms.netmgt.icmp.jni6.Jni6IcmpMessenger
public class Jni6IcmpMessenger
JniIcmpMessenger
| Constructor Summary | |
|---|---|
Jni6IcmpMessenger(int pingerId)
Constructor for JniIcmpMessenger. |
|
| Method Summary | |
|---|---|
static Jni6PingResponse |
createPingResponse(DatagramPacket packet)
Creates a new instance of the class using the passed datagram as the data source. |
void |
sendRequest(Jni6PingRequest request)
sendRequest |
void |
start(Queue<Jni6PingResponse> responseQueue)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Jni6IcmpMessenger(int pingerId)
throws IOException
Constructor for JniIcmpMessenger.
pingerId -
IOException - if any.| Method Detail |
|---|
public void sendRequest(Jni6PingRequest request)
sendRequest
sendRequest in interface org.opennms.protocols.rt.Messenger<Jni6PingRequest,Jni6PingResponse>request - a Jni6PingRequest object.public void start(Queue<Jni6PingResponse> responseQueue)
start in interface org.opennms.protocols.rt.Messenger<Jni6PingRequest,Jni6PingResponse>public static Jni6PingResponse createPingResponse(DatagramPacket packet)
Creates a new instance of the class using the passed datagram as the data source. The address and ping packet are extracted from the datagram and returned as a new instance of the class. In addition to extracting the packet, the packet's received time is updated to the current time.
If the received datagram is not an echo reply or an incorrect length then an exception is generated to alert the caller.
packet - The packet with the ICMP datagram.
org.opennms.netmgt.icmp.spi.PingReply object.
IllegalArgumentException - Throw if the datagram is not the correct length or type.
IndexOutOfBoundsException - Thrown if the datagram does not contain sufficient data.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||