Package flumotion :: Package component :: Package consumers :: Package httpstreamer :: Module httpstreamer :: Class Stats
[hide private]

Class Stats

source code

Known Subclasses:

Instance Methods [hide private]
 
__init__(self, sink) source code
 
_updateAverage(self) source code
 
clientAdded(self) source code
 
clientRemoved(self) source code
 
_updateStats(self)
Periodically, update our statistics on load deltas, and update the UIState with new values for total bytes, bitrate, etc.
source code
 
getCurrentBitrate(self) source code
 
getBytesSent(self) source code
 
getBytesReceived(self) source code
 
getUptime(self) source code
 
getClients(self) source code
 
getPeakClients(self) source code
 
getPeakEpoch(self) source code
 
getAverageClients(self) source code
 
getUrl(self) source code
 
getLoadDeltas(self) source code
 
updateState(self, set) source code
 
__providedBy__(...)
Implement the __providedBy__ attribute
 
__provides__(...)
Special descriptor for class __provides__
Class Variables [hide private]
  __implemented__ = <implementedBy flumotion.component.consumers...
Method Details [hide private]

__providedBy__(...)

 

Implement the __providedBy__ attribute

The __providedBy__ attribute computes the interfaces peovided by an object.

__provides__(...)

 

Special descriptor for class __provides__

The descriptor caches the implementedBy info, so that we can get declarations for objects without instance-specific interfaces a bit quicker.

For example:

>>> from zope.interface import Interface
>>> class IFooFactory(Interface):
...     pass
>>> class IFoo(Interface):
...     pass
>>> class C(object):
...     implements(IFoo)
...     classProvides(IFooFactory)
>>> [i.getName() for i in C.__provides__]
['IFooFactory']
>>> [i.getName() for i in C().__provides__]
['IFoo']

Class Variable Details [hide private]

__implemented__

Value:
<implementedBy flumotion.component.consumers.httpstreamer.httpstreamer\
.Stats>