MCPcopy Create free account
hub / github.com/apache/cassandra-python-driver / populate

Method populate

cassandra/policies.py:164–167  ·  view source on GitHub ↗
(self, cluster, hosts)

Source from the content-addressed store, hash-verified

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

Callers 8

test_basicMethod · 0.95
test_single_hostMethod · 0.95
test_status_updatesMethod · 0.95
test_thread_safetyMethod · 0.95
test_no_live_nodesMethod · 0.95
test_no_live_nodesMethod · 0.95

Calls

no outgoing calls

Tested by 8

test_basicMethod · 0.76
test_single_hostMethod · 0.76
test_status_updatesMethod · 0.76
test_thread_safetyMethod · 0.76
test_no_live_nodesMethod · 0.76
test_no_live_nodesMethod · 0.76