double currentMin = latencyTracker.getMinAverage(); for (Map.Entry<Host, Snapshot.Stats> entry : getScoresSnapshot().getAllStats().entrySet()) { Host host = entry.getKey(); Snapshot.Stats stats = entry.getValue();
LatencyAwarePolicy.Snapshot snapshot = latencyAwarePolicy.getScoresSnapshot(); assertThat(snapshot.getAllStats()).hasSize(1); LatencyAwarePolicy.Snapshot.Stats stats = snapshot.getStats(retrieveSingleHost(cluster));
LatencyAwarePolicy.Snapshot snapshot = latencyAwarePolicy.getScoresSnapshot(); assertThat(snapshot.getAllStats()).isEmpty(); LatencyAwarePolicy.Snapshot.Stats stats = snapshot.getStats(retrieveSingleHost(cluster));
LatencyAwarePolicy.Snapshot snapshot = latencyAwarePolicy.getScoresSnapshot(); assertThat(snapshot.getAllStats()).hasSize(1); LatencyAwarePolicy.Snapshot.Stats stats = snapshot.getStats(retrieveSingleHost(cluster));
for (Map.Entry<Host, Snapshot.Stats> entry : getScoresSnapshot().getAllStats().entrySet()) { Host host = entry.getKey(); Snapshot.Stats stats = entry.getValue();
for (Map.Entry<Host, Snapshot.Stats> entry : getScoresSnapshot().getAllStats().entrySet()) { Host host = entry.getKey(); Snapshot.Stats stats = entry.getValue();
for (Map.Entry<Host, Snapshot.Stats> entry : getScoresSnapshot().getAllStats().entrySet()) { Host host = entry.getKey(); Snapshot.Stats stats = entry.getValue();
for (Map.Entry<Host, Snapshot.Stats> entry : getScoresSnapshot().getAllStats().entrySet()) { Host host = entry.getKey(); Snapshot.Stats stats = entry.getValue();
LatencyAwarePolicy.Snapshot snapshot = latencyAwarePolicy.getScoresSnapshot(); assertThat(snapshot.getAllStats()).hasSize(1); LatencyAwarePolicy.Snapshot.Stats stats = snapshot.getStats(retrieveSingleHost(cluster));
LatencyAwarePolicy.Snapshot snapshot = latencyAwarePolicy.getScoresSnapshot(); assertThat(snapshot.getAllStats()).isEmpty(); LatencyAwarePolicy.Snapshot.Stats stats = snapshot.getStats(retrieveSingleHost(cluster));
LatencyAwarePolicy.Snapshot snapshot = latencyAwarePolicy.getScoresSnapshot(); assertThat(snapshot.getAllStats()).hasSize(1); LatencyAwarePolicy.Snapshot.Stats stats = snapshot.getStats(retrieveSingleHost(cluster));