|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.datastax.driver.core.policies.LatencyAwarePolicy.Snapshot
public static class LatencyAwarePolicy.Snapshot
An immutable snapshot of the per-host scores (and stats in general)
maintained by LatencyAwarePolicy
to base its decision upon.
Nested Class Summary | |
---|---|
static class |
LatencyAwarePolicy.Snapshot.Stats
A snapshot of the statistics on a given host kept by LatencyAwarePolicy . |
Method Summary | |
---|---|
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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
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
.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |