repeatable way, to distribute load over many peers.
"""
+class IServer(Interface):
+ """I live in the client, and represent a single server."""
+ def start_connecting(tub, trigger_cb):
+ pass
+ def get_nickname():
+ pass
+ def get_rref():
+ pass
+
class IMutableSlotWriter(Interface):
"""
import re, time
-from zope.interface import implements, Interface
+from zope.interface import implements
from foolscap.api import eventually
-from allmydata.interfaces import IStorageBroker
+from allmydata.interfaces import IStorageBroker, IServer
from allmydata.util import log, base32
from allmydata.util.assertutil import precondition
from allmydata.util.rrefutil import add_version_to_remote_reference
return self.servers[serverid].get_nickname()
return None
-class IServer(Interface):
- """I live in the client, and represent a single server."""
- def start_connecting(tub, trigger_cb):
- pass
- def get_nickname():
- pass
- def get_rref():
- pass
-
class NativeStorageServer:
"""I hold information about a storage server that we want to connect to.
If we are connected, I hold the RemoteReference, their host address, and