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

Class PortSet

source code

extern.log.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, randomPorts=False) 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 extern.log.log.Loggable: __providedBy__, debug, doLog, error, info, log, logFunction, logObjectName, warning, warningFailure, writeMarker

Class Variables [hide private]

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

Method Details [hide private]

releasePorts(self, ports)

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