Package flumotion :: Package component :: Package bouncers :: Module component :: Class Bouncer
[hide private]

Class Bouncer

source code

             object --+        
                      |        
common.common.InitMixin --+    
                          |    
extern.log.log.Loggable --+    
                          |    
    component.BaseComponent --+
                              |
                             Bouncer

I am the base class for all bouncers.

Nested Classes [hide private]
child class of BaseComponentMedium componentMediumClass
the medium class to use for this component
Instance Methods [hide private]
 
init(self)
A subclass should do as little as possible in its init method.
source code
 
do_setup(self)
Subclasses can implement me to set up the component before it is started.
source code
 
setMedium(self, medium) source code
 
authenticate(self, keycard) source code
 
setEnabled(self, enabled) source code
 
hasKeycard(self, keycard) source code
 
removeKeycard(self, keycard) source code
 
removeKeycardId(self, id) source code
 
keepAlive(self, issuerName, ttl) source code

Inherited from component.BaseComponent: __init__, addMessage, adminCallRemote, check_properties, do_check, do_stop, fixRenamedProperties, getMood, getName, getWorkerName, setMood, setShutdownHook, setWorkerName, setup, setup_completed, stop, waitForHappy

Inherited from component.BaseComponent (private): _pollCPU, _pollMemory

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

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

Class Variables [hide private]
  logCategory = 'bouncer'
Implementors can provide a category to log their messages under.

Inherited from extern.log.log.Loggable: __implemented__, __provides__

Instance Variables [hide private]

Inherited from component.BaseComponent: medium, name, uiState

Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

init(self)

source code 

A subclass should do as little as possible in its init method. In particular, it should not try to access resources.

Failures during init are marshalled back to the manager through the worker's remote_create method, since there is no component state proxied to the manager yet at the time of init.

Overrides: component.BaseComponent.init
(inherited documentation)

do_setup(self)

source code 

Subclasses can implement me to set up the component before it is started. It should set up the component, possibly opening files and resources. Non-programming errors should not be raised, but returned as a failing deferred.

The return value may be a deferred.

Overrides: component.BaseComponent.do_setup
(inherited documentation)

setMedium(self, medium)

source code 
Overrides: component.BaseComponent.setMedium