PyFoam.Infrastructure.FoamMetaServer module¶
A XMLRPC-Server that knows all PyFoam-Runs in its subnet
-
class
PyFoam.Infrastructure.FoamMetaServer.FoamMetaServer(port=None)[source]¶ Bases:
objectThe Metaserver.
Collects all the known FoamServers. Then waits for the servers to register themselves. Checks at regular intervalls whether the processes are still alive
-
deregisterServer(ip, pid, port, sync=True)[source]¶ Deregisters a server :param ip: IP of the server :param pid: Die PID at the server :param port: the port at which the server is listening :param sync: (optional) if to sync with the webserver or not
-
forwardCommand(ip, port, cmd)[source]¶ Forwards a RPC to another machine :param ip: IP of the server :param port: the port at which the server is listening :param cmd: the command that should be executed there :return: the result of the command
-
-
class
PyFoam.Infrastructure.FoamMetaServer.MetaChecker(parent)[source]¶ Bases:
threading.ThreadChecks regularily whether the registered Servers are still alive