Package flumotion :: Package common :: Module worker :: Class PortSet
[hide private]

Class PortSet

source code

log.Loggable --+
               |
              PortSet

A list of ports that keeps track of which are available for use on a given machine.

Instance Methods [hide private]
 
__init__(self, logName, ports) source code
 
reservePorts(self, numPorts) source code
 
setPortsUsed(self, ports) source code
 
releasePorts(self, ports) source code
 
numFree(self) source code
 
numUsed(self) source code

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

Class Variables [hide private]

Inherited from log.Loggable: __implemented__, __provides__, logCategory

Method Details [hide private]

releasePorts(self, ports)

source code 
Parameters:
  • ports (list of int) - list of ports to release