Package flumotion :: Package twisted :: Module pb :: Class FPBClientFactory
[show private | hide private]
[frames | no frames]

Class FPBClientFactory

         Loggable --+
                    |
  Factory --+       |
            |       |
ClientFactory --+   |
                |   |
  PBClientFactory --+
                    |
                   FPBClientFactory

Known Subclasses:
ReconnectingFPBClientFactory

I am an extended Perspective Broker client factory using generic keycards for login.
Method Summary
  login(self, keycard, client, *interfaces)
Login, respond to challenges, and eventually get perspective from remote PB server.
    Inherited from PBClientFactory
  __init__(self)
  clientConnectionFailed(self, connector, reason)
Called when a connection has failed to connect.
  clientConnectionLost(self, connector, reason, reconnecting)
Reconnecting subclasses should call with reconnecting=1.
  clientConnectionMade(self, broker)
  disconnect(self)
If the factory is connected, close the connection.
  getPerspective(self, username, password, serviceName, perspectiveName, client)
Get perspective from remote PB server.
  getRootObject(self)
Get root object of remote PB server.
    Inherited from ClientFactory
  startedConnecting(self, connector)
Called when a connection has been started.
    Inherited from Factory
  buildProtocol(self, addr)
Create an instance of a subclass of Protocol.
  doStart(self)
Make sure startFactory is called.
  doStop(self)
Make sure stopFactory is called.
  startFactory(self)
This will be called before I begin listening on a Port or Connector.
  stopFactory(self)
This will be called before I stop listening on all Ports/Connectors.
    Inherited from Loggable
  debug(self, *args)
Log a debug message.
  error(self, *args)
Log an error.
  info(self, *args)
Log an informational message.
  log(self, *args)
Log a log message.
  logFunction(self, message)
Overridable log function.
  logObjectName(self)
Overridable object name function.
  warning(self, *args)
Log a warning.
  warningFailure(self, failure)
Log a warning about a Failure.

Class Variable Summary
str logcategory = 'FPBClientFactory'
    Inherited from PBClientFactory
int unsafeTracebacks = 0                                                                     
    Inherited from Factory
tuple __implements__ = (<class 'twisted.internet.interfaces.IP...
str noisy = 'sure, why not'
int numPorts = 0                                                                     
NoneType protocol = None                                                                  
    Inherited from Loggable
str logCategory: Implementors can provide a category to log their messages under.

Method Details

login(self, keycard, client=None, *interfaces)

Login, respond to challenges, and eventually get perspective from remote PB server.

Currently only credentials implementing IUsernamePassword are supported.
Returns:
Deferred of RemoteReference to the perspective.
Overrides:
twisted.spread.pb.PBClientFactory.login

Class Variable Details

logcategory

Type:
str
Value:
'FPBClientFactory'                                                     

Generated by Epydoc 2.1 on Tue Dec 20 15:33:10 2005 http://epydoc.sf.net