NCache and NCacheEntry objects. This is great, since it provides a single class through which all the metadata.
Data, however, is managed by several classes since it is streamed, rather than read and then written (a good design for a proxy cache, but which complicates things for us). The relevant classes are
remoteio.
With remote streams, the interface to the RemoteRepository works as follows
BaseHandler
NCacheEntry to the NCache causes the cache to send an RMI call to the RemoteRepository which creates a pending entry, and returns a RemoteOutputStream
RemoteOutputStream is added to the NCacheEntry
BaseHandler adds the stream from the cache to the MultiStream that it maintains to multiplex the data from the HTTP response to the client and a file. The RemoteOutputStream replaces that file.
RemoteRepository is notified, and the new cache data is indexed.
| Topic ProxyStorageInterface . { Edit | Attach | Ref-By | Printable | Diffs | r1.2 | > | r1.1 | More } |
|
Revision r1.2 - 22 Nov 2003 - 19:03 GMT - RjHonicky Parents: WebHome > DLibraryDesign |
Copyright © 1999-2003 by the contributing authors.
All material on this collaboration platform is the property of the contributing authors. Ideas, requests, problems regarding TWiki? Send feedback. |