Class AbstractPinger<T extends java.net.InetAddress>

  • All Implemented Interfaces:
    java.lang.Runnable
    Direct Known Subclasses:
    V4Pinger, V6Pinger

    public abstract class AbstractPinger<T extends java.net.InetAddress>
    extends java.lang.Object
    implements java.lang.Runnable
    Deprecated.
    This class seems like it's mostly a duplicate of AbstractPinger.
    JnaPinger
    Author:
    brozow
    • Field Detail

      • NANOS_PER_MILLI

        public static final double NANOS_PER_MILLI
        Deprecated.
        See Also:
        Constant Field Values
      • m_throwable

        protected final java.util.concurrent.atomic.AtomicReference<java.lang.Throwable> m_throwable
        Deprecated.
      • m_metric

        protected final Metric m_metric
        Deprecated.
    • Constructor Detail

    • Method Detail

      • getPingSocket

        protected NativeDatagramSocket getPingSocket()
        Deprecated.
        Returns:
        the pingSocket
      • getCount

        public int getCount()
        Deprecated.
      • isFinished

        public boolean isFinished()
        Deprecated.
      • start

        public void start()
        Deprecated.
      • stop

        public void stop()
                  throws java.lang.InterruptedException
        Deprecated.
        Throws:
        java.lang.InterruptedException
      • closeSocket

        public void closeSocket()
        Deprecated.
      • getListeners

        protected java.util.List<PingReplyListener> getListeners()
        Deprecated.
      • ping

        public abstract PingReplyMetric ping​(T addr,
                                             int id,
                                             int sequenceNumber,
                                             int count,
                                             long interval)
                                      throws java.lang.InterruptedException
        Deprecated.
        Throws:
        java.lang.InterruptedException
      • addPingReplyListener

        public void addPingReplyListener​(PingReplyListener listener)
        Deprecated.