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_MPLIB': 'OPENMPI', 'WM_COMPILER_ARCH': '', 'OPE...

Imports: Infrastructure.FoamServer.Lock, Basics.RingBuffer.RingBuffer, SimpleXMLRPCServer.SimpleXMLRPCServer, threading.Thread, configuration, FoamInformation.foamMPI, Infrastructure.NetworkHelpers.freeServerPort, FoamInformation.getPathFromEnviron, sys, Infrastructure.FoamServer.time, Infrastructure.Logging.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_MPLIB': 'OPENMPI', 'WM_COMPILER_ARCH': '', 'OPENMPI_VERSION': 'pr
einstalled', 'FOAM_LIB': '/home/bgschaid/OpenFOAM/OpenFOAM-1.4.1/lib',
 'SHELL': '/bin/sh', 'WM_OPTIONS': 'linux64GccDPOpt', 'HISTSIZE': '100
0', 'FOAM_MPI_LIBBIN': '/home/bgschaid/OpenFOAM/OpenFOAM-1.4.1/lib/lin
ux64GccDPOpt/openmpi-preinstalled', 'MANPATH': '', 'JAVA_HOME': '/home
/bgschaid/OpenFOAM/linux64/j2sdk1.4.2_05', 'MFLAGS': '', 'MICO_PATH': 
'/home/bgschaid/OpenFOAM/OpenFOAM-1.4.1/src/mico-2.3.12', 'FOAMX_CONFI
G': '/home/bgschaid/OpenFOAM/OpenFOAM-1.4.1/.OpenFOAM-1.4.1/apps/FoamX
...