]> git.rkrishnan.org Git - tahoe-lafs/tahoe-lafs.git/commit - src/allmydata/web/root.py
Refactor StorageFarmBroker handling of servers
authorBrian Warner <warner@lothar.com>
Mon, 21 Feb 2011 01:58:04 +0000 (17:58 -0800)
committerBrian Warner <warner@lothar.com>
Mon, 21 Feb 2011 01:58:04 +0000 (17:58 -0800)
commitffd296fc5ab8007f7ab25f6da62de654fb57e765
treee31910ab47d458caa6f193af03abad8625bf9b39
parent36d1cce5f0569feae32b1058a440cf595c0ad9c1
Refactor StorageFarmBroker handling of servers

Pass around IServer instance instead of (peerid, rref) tuple. Replace
"descriptor" with "server". Other replacements:

 get_all_servers -> get_connected_servers/get_known_servers
 get_servers_for_index -> get_servers_for_psi (now returns IServers)

This change still needs to be pushed further down: lots of code is now
getting the IServer and then distributing (peerid, rref) internally.
Instead, it ought to distribute the IServer internally and delay
extracting a serverid or rref until the last moment.

no_network.py was updated to retain parallelism.
24 files changed:
src/allmydata/client.py
src/allmydata/control.py
src/allmydata/immutable/checker.py
src/allmydata/immutable/downloader/finder.py
src/allmydata/immutable/filenode.py
src/allmydata/immutable/offloaded.py
src/allmydata/immutable/upload.py
src/allmydata/interfaces.py
src/allmydata/mutable/publish.py
src/allmydata/mutable/servermap.py
src/allmydata/storage_client.py
src/allmydata/test/common.py
src/allmydata/test/no_network.py
src/allmydata/test/test_checker.py
src/allmydata/test/test_client.py
src/allmydata/test/test_deepcheck.py
src/allmydata/test/test_download.py
src/allmydata/test/test_hung_server.py
src/allmydata/test/test_immutable.py
src/allmydata/test/test_mutable.py
src/allmydata/test/test_system.py
src/allmydata/test/test_upload.py
src/allmydata/web/check_results.py
src/allmydata/web/root.py