l.c.v.t.AsyncVirtualServer(Server) : class documentation

Part of lp.codehosting.vfs.transport View In Hierarchy

Known subclasses: lp.codehosting.vfs.branchfs._BaseLaunchpadServer, lp.codehosting.vfs.branchfs.DirectDatabaseLaunchpadServer

Bazaar Server for translating paths asynchronously.
Instance VariablesasyncTransportFactoryA callable that takes a Server and a URL and returns an AsyncVirtualTransport instance. Subclasses should set this callable if they need to hook into any filesystem operations.
Method __init__ Construct an AsyncVirtualServer.
Method translateVirtualPath Translate 'virtual_url_fragment' into a transport and sub-fragment.
Method get_url Return the URL of this server.
Method start_server See Server.start_server.
Method stop_server See Server.stop_server.
Method _transportFactory Create a transport for this server pointing at url.
def __init__(self, scheme):
Construct an AsyncVirtualServer.
ParametersschemeThe URL scheme to use.
def _transportFactory(self, url):
Create a transport for this server pointing at url.

This constructs a regular Bazaar Transport from the "asynchronous transport" factory specified in the asyncTransportFactory instance variable.

def translateVirtualPath(self, virtual_url_fragment):
Translate 'virtual_url_fragment' into a transport and sub-fragment.
Parametersvirtual_url_fragmentA virtual URL fragment to be translated.
Returns(transport, path_on_transport)
RaisesNoSuchFileIf virtual_path is maps to a path that could not be found.
PermissionDeniedif the path is forbidden.
def get_url(self):
Return the URL of this server.
def start_server(self):
See Server.start_server.
def stop_server(self):
See Server.stop_server.
API Documentation for Launchpad, generated by pydoctor at 2018-08-19 00:00:03.