Package flumotion :: Package common :: Module server :: Class Server
[show private | hide private]
[frames | no frames]

Class Server

Loggable --+
           |
          Server


Method Summary
  __init__(self, servable)
I expose a servable to the network using TCP or SSL.
  startSSL(self, host, port, pemFile, configDir)
Listen as the given host and on the given port using SSL.
  startTCP(self, host, port)
Listen as the given host and on the given port using normal TCP.
    Inherited from Loggable
  debug(self, *args)
Log a debug message.
dict doLog(self, level, where, format, *args, **kwargs)
Log a message at the given level, with the possibility of going higher up in the stack.
  error(self, *args)
Log an error.
  info(self, *args)
Log an informational message.
  log(self, *args)
Log a log message.
  logFunction(self, *args)
Overridable log function.
  logObjectName(self)
Overridable object name function.
  warning(self, *args)
Log a warning.
  warningFailure(self, failure, swallow)
Log a warning about a Failure.

Class Variable Summary
str logCategory: Implementors can provide a category to log their messages under.
    Inherited from Loggable
Implements __implemented__ = <implementedBy flumotion.common.log.Lo...
ClassProvides __providedBy__ = <zope.interface.declarations.ClassProvi...
ClassProvides __provides__ = <zope.interface.declarations.ClassProvide...

Method Details

__init__(self, servable)
(Constructor)

I expose a servable to the network using TCP or SSL.
Parameters:
servable
           (type=an implemtor of IServable)

startSSL(self, host, port, pemFile, configDir)

Listen as the given host and on the given port using SSL. Use the given .pem file, or look for it in the config directory.
Returns:
{twisted.internet.interfaces.IListeningPort} on which we are listening; call .stopListening() to stop.

startTCP(self, host, port)

Listen as the given host and on the given port using normal TCP.
Returns:
{twisted.internet.interfaces.IListeningPort} on which we are listening; call .stopListening() to stop.

Class Variable Details

logCategory

Implementors can provide a category to log their messages under.
Type:
str
Value:
'server'                                                               

Generated by Epydoc 2.1 on Fri Feb 2 11:44:37 2007 http://epydoc.sf.net