Class Jni6PingRequest

    • Constructor Detail

      • Jni6PingRequest

        public Jni6PingRequest​(java.net.Inet6Address addr,
                               int identifier,
                               int sequenceNumber,
                               long threadId,
                               long timeout,
                               int retries,
                               int packetsize,
                               PingResponseCallback cb)
      • Jni6PingRequest

        public Jni6PingRequest​(java.net.Inet6Address addr,
                               int identifier,
                               int sequenceNumber,
                               long timeout,
                               int retries,
                               int packetsize,
                               PingResponseCallback cb)
    • Method Detail

      • getNextTID

        public static final long getNextTID()
      • processResponse

        public boolean processResponse​(Jni6PingResponse reply)

        processResponse

        Specified by:
        processResponse in interface org.opennms.protocols.rt.Request<Jni6PingRequestId,​Jni6PingRequest,​Jni6PingResponse>
        Parameters:
        reply - a org.opennms.netmgt.icmp.Jni6PingResponse.JniPingResponse.PingReply object.
        Returns:
        a boolean.
      • isExpired

        public boolean isExpired()

        isExpired

        Returns:
        a boolean.
      • toString

        public java.lang.String toString()

        toString

        Overrides:
        toString in class java.lang.Object
        Returns:
        a String object.
      • getDelay

        public long getDelay​(java.util.concurrent.TimeUnit unit)
        Specified by:
        getDelay in interface java.util.concurrent.Delayed
        Specified by:
        getDelay in interface org.opennms.protocols.rt.Request<Jni6PingRequestId,​Jni6PingRequest,​Jni6PingResponse>
      • compareTo

        public int compareTo​(java.util.concurrent.Delayed request)

        compareTo

        Specified by:
        compareTo in interface java.lang.Comparable<java.util.concurrent.Delayed>
        Parameters:
        request - a Delayed object.
        Returns:
        a int.
      • send

        public void send​(org.opennms.protocols.icmp6.ICMPv6Socket socket)
        Send this JniPingRequest through the given icmpSocket
        Parameters:
        socket - a IcmpSocket object.
      • elapsedTime

        public double elapsedTime​(java.util.concurrent.TimeUnit timeUnit)
        Description copied from interface: EchoPacket
        Returns the round trip time in the requested TimeUnit (note that a fractional value will be returned if necessary)
        Specified by:
        elapsedTime in interface EchoPacket