Package flumotion :: Package component :: Package misc :: Package httpserver :: Package httpcached :: Module strategy_base :: Class CachedSource
[hide private]

Class CachedSource

source code

                 object --+    
                          |    
resource_manager.DataSource --+
                              |
                             CachedSource

Data source that read data directly from a localy cached file.

Instance Methods [hide private]
 
__init__(self, ident, url, cachedFile, stats)
x.__init__(...) initializes x; see help(type(x)) for signature
source code
 
produce(self, consumer, offset) source code
 
read(self, offset, size) source code
 
close(self) source code

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __sizeof__, __str__, __subclasshook__

Class Variables [hide private]
  mimetypes = ourmimetypes.MimeTypes()

Inherited from resource_manager.DataSource: identifier, mimeType, mtime, size, url

Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__init__(self, ident, url, cachedFile, stats)
(Constructor)

source code 

x.__init__(...) initializes x; see help(type(x)) for signature

Overrides: object.__init__
(inherited documentation)

read(self, offset, size)

source code 
Overrides: resource_manager.DataSource.read

close(self)

source code 
Overrides: resource_manager.DataSource.close