(self, cluster, hosts)
| 162 | _position = 0 |
| 163 | |
| 164 | def populate(self, cluster, hosts): |
| 165 | self._live_hosts = frozenset(hosts) |
| 166 | if len(hosts) > 1: |
| 167 | self._position = randint(0, len(hosts) - 1) |
| 168 | |
| 169 | def distance(self, host): |
| 170 | return HostDistance.LOCAL |
no outgoing calls