Package flumotion :: Package component :: Package misc :: Package httpserver :: Package httpcached :: Module resource_manager :: Class Resource
[hide private]

Class Resource

source code

object --+
         |
        Resource

Offers a file-like interface of a data source. Handle errors and asynchronous readings and file offset.

Instance Methods [hide private]
 
__init__(self, source, stats)
x.__init__(...) initializes x; see help(type(x)) for signature
source code
 
getMimeType(self) source code
 
getmtime(self) source code
 
getsize(self) source code
 
tell(self) source code
 
seek(self, offset) source code
 
read(self, size) source code
 
produce(self, consumer, fromOffset=None)
Returns a producer that produce data from the specified position or from the current position if None is specified.
source code
 
close(self) source code
 
getLogFields(self) source code
 
_check(self) source code
 
_open(self, source) source code
 
_cbUpdateOffset(self, data) source code

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

Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__init__(self, source, stats)
(Constructor)

source code 

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

Overrides: object.__init__
(inherited documentation)

produce(self, consumer, fromOffset=None)

source code 

Returns a producer that produce data from the specified position or from the current position if None is specified. Can return None if a producer cannot be provided or is not convenient.