Package flumotion :: Package common :: Module medium :: Class PingingMedium
[hide private]

Class PingingMedium

source code

 twisted.spread.jelly.Jellyable --+                
                                  |                
twisted.spread.flavors.Serializable --+            
                                      |            
   twisted.spread.flavors.Referenceable --+        
                                          |        
                extern.log.log.Loggable --+        
                                          |        
                   twisted.pb.Referenceable --+    
                                              |    
                                     BaseMedium --+
                                                  |
                                                 PingingMedium
Known Subclasses:

Instance Methods [hide private]
 
startPinging(self, disconnect) source code
 
_ping(self) source code
 
_pingCheck(self) source code
 
stopPinging(self) source code
 
_disconnect(self) source code
 
setRemoteReference(self, remote)
Set the given remoteReference as the reference to the server-side avatar.
source code
 
remote_writeFluDebugMarker(self, level, marker)
Sets a marker that will be prefixed to the log strings.
source code
 
__provides__(...)
Special descriptor for class __provides__

Inherited from BaseMedium: callRemote, callRemoteLogging, getBundledFunction, hasRemoteReference, runBundledFunction

Inherited from twisted.pb.Referenceable: remoteMessageReceived

Inherited from twisted.spread.flavors.Referenceable: jellyFor

Inherited from twisted.spread.flavors.Serializable: processUniqueID

Inherited from twisted.spread.jelly.Jellyable: __providedBy__, getStateFor

Inherited from extern.log.log.Loggable: debug, doLog, error, info, log, logFunction, logObjectName, warning, warningFailure, writeMarker

Class Variables [hide private]
  _pingInterval = 5
  _pingCheckInterval = 30.0
  _pingDC = None
hash(x)
  __implemented__ = <implementedBy flumotion.common.medium.Pingi...

Inherited from BaseMedium: bundleLoader, logCategory, remoteLogName

Inherited from twisted.spread.flavors.Referenceable: perspective

Instance Variables [hide private]

Inherited from BaseMedium: remote

Method Details [hide private]

startPinging(self, disconnect)

source code 
Parameters:
  • disconnect (callable) - a method to call when we do not get ping replies

setRemoteReference(self, remote)

source code 

Set the given remoteReference as the reference to the server-side avatar.

Parameters:
  • remoteReference - twisted.spread.pb.RemoteReference
Overrides: BaseMedium.setRemoteReference
(inherited documentation)

remote_writeFluDebugMarker(self, level, marker)

source code 

Sets a marker that will be prefixed to the log strings. Setting this marker to multiple elements at a time helps debugging.

Parameters:
  • marker (str) - A string to prefix all the log strings.

__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']

Overrides: extern.log.log.Loggable.__provides__

Class Variable Details [hide private]

__implemented__

Value:
<implementedBy flumotion.common.medium.PingingMedium>