Package flumotion :: Package component :: Package bouncers :: Module bouncer :: Class BouncerMedium
[hide private]

Class BouncerMedium

source code

 twisted.spread.jelly.Jellyable --+                        
                                  |                        
twisted.spread.flavors.Serializable --+                    
                                      |                    
   twisted.spread.flavors.Referenceable --+                
                                          |                
                extern.log.log.Loggable --+                
                                          |                
                   twisted.pb.Referenceable --+            
                                              |            
                       common.medium.BaseMedium --+        
                                                  |        
                        common.medium.PingingMedium --+    
                                                      |    
                          component.BaseComponentMedium --+
                                                          |
                                                         BouncerMedium

Instance Methods [hide private]
 
remote_authenticate(self, keycard)
Authenticates the given keycard.
source code
 
remote_keepAlive(self, issuerName, ttl)
Resets the expiry timeout for keycards issued by issuerName.
source code
 
remote_removeKeycardId(self, keycardId) source code
 
remote_expireKeycardId(self, keycardId)
Called by bouncer views to expire keycards.
source code
 
remote_setEnabled(self, enabled) source code
 
remote_getEnabled(self) source code

Inherited from component.BaseComponentMedium: __init__, getIP, getManagerIP, remote_getConfig, remote_getMasterClockInfo, remote_getState, remote_getUIState, remote_getVersions, remote_reloadComponent, remote_setFluDebug, remote_stop, setAuthenticator, setRemoteReference, setup

Inherited from common.medium.PingingMedium: remote_writeFluDebugMarker, startPinging, stopPinging

Inherited from common.medium.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]
  logCategory = 'bouncermedium'
Implementors can provide a category to log their messages under.

Inherited from component.BaseComponentMedium: __implemented__, __provides__, authenticator

Inherited from common.medium.BaseMedium: bundleLoader, remoteLogName

Inherited from twisted.spread.flavors.Referenceable: perspective

Instance Variables [hide private]

Inherited from common.medium.BaseMedium: remote

Method Details [hide private]

remote_authenticate(self, keycard)

source code 

Authenticates the given keycard.

Parameters:

remote_keepAlive(self, issuerName, ttl)

source code 

Resets the expiry timeout for keycards issued by issuerName.

Parameters:
  • issuerName (str) - the issuer for which keycards should be kept alive; that is to say, keycards with the attribute 'issuerName' set to this value will have their ttl values reset.
  • ttl (number) - the new expiry timeout