public static class LatencyAwarePolicy.Snapshot extends Object
LatencyAwarePolicy
to base its decision upon.Modifier and Type | Class and Description |
---|---|
static class |
LatencyAwarePolicy.Snapshot.Stats
A snapshot of the statistics on a given host kept by
LatencyAwarePolicy . |
Modifier and Type | Method and Description |
---|---|
Map<Host,LatencyAwarePolicy.Snapshot.Stats> |
getAllStats()
A map with the stats for all hosts tracked by the
LatencyAwarePolicy at the time of the snapshot. |
LatencyAwarePolicy.Snapshot.Stats |
getStats(Host host)
The
Stats object for a given host. |
public Map<Host,LatencyAwarePolicy.Snapshot.Stats> getAllStats()
LatencyAwarePolicy
at the time of the snapshot.public LatencyAwarePolicy.Snapshot.Stats getStats(Host host)
Stats
object for a given host.host
- the host to return the stats of.Stats
for host
in this snapshot or
null
if the snapshot has not information on host
.