Package PyFoam :: Package Execution :: Module FoamServer
[hide private]
[frames] | no frames]

Module FoamServer



A XMLRPC-Server that answeres about the current state of a Foam-Run

Classes [hide private]
  FoamAnswerer
The class that handles the actual requests (only needed to hide the Thread-methods from the world
  FoamServer
This is the class that serves the requests about the FOAM-Run

Functions [hide private]
  findFreePort()
Finds a free server port on this machine and returns it

Variables [hide private]
  environ = {'WM_SHELL': 'bash', 'WM_MPLIB': 'OPENMPI', 'WM_DECO...

Imports: Infrastructure.FoamServer.Lock, Basics.RingBuffer.RingBuffer, SimpleXMLRPCServer.SimpleXMLRPCServer, threading.Thread, configuration, FoamInformation.foamMPI, Infrastructure.NetworkHelpers.freeServerPort, FoamInformation.getPathFromEnviron, sys, Infrastructure.FoamServer.time, Infrastructure.FoamServer.uname, versionString


Function Details [hide private]

findFreePort()

 

Finds a free server port on this machine and returns it

Valid server ports are in the range 18000 upward (the function tries to find the lowest possible port number

ATTENTION: this part may introduce race conditions

Variables Details [hide private]

environ

None
Value:
{'WM_SHELL': 'bash', 'WM_MPLIB': 'OPENMPI', 'WM_DECOMP_LIBS': '-lfaceD
ecompFiniteElement', 'WM_COMPILER_ARCH': '', 'OPENMPI_VERSION': 'prein
stalled', 'FOAM_LIB': '/home/bgschaid/OpenFOAM/OpenFOAM-1.3-devel/lib'
, 'SHELL': '/bin/sh', 'WM_OPTIONS': 'linuxAMD64Gcc4DPOpt', 'HISTSIZE':
 '1000', 'SOURCE': '() {  foamDotFile=$1;\n . $1;\n foamDotFile=\n}', 
'FOAM_MPI_LIBBIN': '/home/bgschaid/OpenFOAM/OpenFOAM-1.3-devel/lib/lin
uxAMD64Gcc4DPOpt/openmpi-preinstalled', 'MANPATH': '/opt/gridengine/ma
n:/opt/gridengine/man:/usr/java/jre1.5.0_07//man:/usr/kerberos/man:/us
...