Package flumotion :: Package component :: Package misc :: Package httpserver :: Module cachestats :: Class RequestStatistics
[hide private]

Class RequestStatistics

source code

object --+
         |
        RequestStatistics

Instance Methods [hide private]
 
__init__(self, cacheStats)
x.__init__(...) initializes x; see help(type(x)) for signature
source code
 
getBytesRead(self) source code
 
getCacheReadRatio(self) source code
 
onStarted(self, size, cacheStatus) source code
 
onCacheOutdated(self) source code
 
onBytesRead(self, fromSource, fromCache, correction) source code
 
onClosed(self) source code
 
getLogFields(self)
Provide the following log fields: cache-status: value can be 'cache-miss', 'cache-outdate', 'cache-hit', or 'temp-hit' cache-read: how many bytes where read from the cache for this resource.
source code

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

Properties [hide private]
  bytesRead
  cacheReadRatio

Inherited from object: __class__

Method Details [hide private]

__init__(self, cacheStats)
(Constructor)

source code 

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

Overrides: object.__init__
(inherited documentation)

getLogFields(self)

source code 

Provide the following log fields:
    cache-status:  value can be 'cache-miss', 'cache-outdate',
                   'cache-hit', or 'temp-hit'
    cache-read:    how many bytes where read from the cache for
                   this resource. the difference from resource-read
                   was read from the source file (network file system?)

The proportion read from cache and from source are adjusted
to take into account the file copy. It's done by remembering
how many bytes are copied at session level.


Property Details [hide private]

bytesRead

Get Method:
getBytesRead(self)

cacheReadRatio

Get Method:
getCacheReadRatio(self)