public class LatencySubscribers
extends java.lang.Object
DynamicEndpointSnitch listens to in order
to update host scores.
FIXME: rename/specialise, since only used by DES?| Modifier and Type | Class and Description |
|---|---|
static interface |
LatencySubscribers.Subscriber |
| Constructor and Description |
|---|
LatencySubscribers() |
| Modifier and Type | Method and Description |
|---|---|
void |
add(InetAddressAndPort address,
long latency,
java.util.concurrent.TimeUnit unit) |
void |
maybeAdd(RequestCallback cb,
InetAddressAndPort address,
long latency,
java.util.concurrent.TimeUnit unit)
Track latency information for the dynamic snitch
|
void |
subscribe(LatencySubscribers.Subscriber subscriber) |
public void subscribe(LatencySubscribers.Subscriber subscriber)
public void add(InetAddressAndPort address, long latency, java.util.concurrent.TimeUnit unit)
public void maybeAdd(RequestCallback cb, InetAddressAndPort address, long latency, java.util.concurrent.TimeUnit unit)
cb - the callback associated with this message -- this lets us know if it's a message type we're interested inaddress - the host that replied to the messageCopyright © 2009-2020 The Apache Software Foundation