Package flumotion :: Package common :: Module worker :: Class PortSet
[show private | hide private]
[frames | no frames]

Class PortSet

Loggable --+
           |
          PortSet


A list of ports that keeps track of which are available for use on a given machine.
Method Summary
  __init__(self, logName, ports)
  numFree(self)
  numUsed(self)
  releasePorts(self, ports)
  reservePorts(self, numPorts)
  setPortsUsed(self, ports)
    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
    Inherited from Loggable
Implements __implemented__ = <implementedBy flumotion.common.log.Lo...
ClassProvides __providedBy__ = <zope.interface.declarations.ClassProvi...
ClassProvides __provides__ = <zope.interface.declarations.ClassProvide...
str logCategory: Implementors can provide a category to log their messages under.

Method Details

releasePorts(self, ports)

Parameters:
ports - list of ports to release
           (type=list of int)

Generated by Epydoc 2.1 on Sat Apr 14 13:11:53 2007 http://epydoc.sf.net