Class LatencySubscribers


  • public class LatencySubscribers
    extends java.lang.Object
    Callback that DynamicEndpointSnitch listens to in order to update host scores. FIXME: rename/specialise, since only used by DES?
    • Constructor Detail

      • LatencySubscribers

        public LatencySubscribers()
    • Method Detail

      • add

        public void add​(InetAddressAndPort address,
                        long latency,
                        java.util.concurrent.TimeUnit unit)
      • maybeAdd

        public void maybeAdd​(RequestCallback cb,
                             InetAddressAndPort address,
                             long latency,
                             java.util.concurrent.TimeUnit unit)
        Track latency information for the dynamic snitch
        Parameters:
        cb - the callback associated with this message -- this lets us know if it's a message type we're interested in
        address - the host that replied to the message