Part of lp.codehosting.vfs.transport View In Hierarchy
Known subclasses: lp.codehosting.vfs.branchfs._BaseLaunchpadServer, lp.codehosting.vfs.branchfs.DirectDatabaseLaunchpadServer
Server for translating paths asynchronously.| Instance Variables | asyncTransportFactory | A 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. |
AsyncVirtualServer.| Parameters | scheme | The URL scheme to use. |
url.
This constructs a regular Bazaar Transport from the "asynchronous
transport" factory specified in the asyncTransportFactory instance
variable.
| Parameters | virtual_url_fragment | A virtual URL fragment to be translated. |
| Returns | (transport, path_on_transport) | |
| Raises | NoSuchFile | If virtual_path is maps to a path that could
not be found. |
| PermissionDenied | if the path is forbidden. | |