Package PyFoam :: Package Infrastructure :: Module FoamMetaServer :: Class FoamMetaServer
[show private | hide private]
[frames | no frames]

Class FoamMetaServer


The Metaserver.

Collects all the known FoamServers. Then waits for the servers to register themselves. Checks at regular intervalls whether the processes are still alive
Method Summary
  __init__(self, port)
  collect(self)
Starts a thread that collects the data of the servers from the net
  deregisterServer(self, ip, pid, port)
Deregisters a server
  forwardCommand(self, ip, port, cmd)
Forwards a RPC to another machine
  kill(self)
Exits the server
  list(self)
Returns a list of the found Foam-Runs
  registerServer(self, ip, pid, port, external)
Registers a new server via XMLRPC
  scan(self, additional)
Starts a thread that collects the data of the servers from the net

Method Details

__init__(self, port=None)
(Constructor)

Parameters:
port - The port on which the server should listen

collect(self)

Starts a thread that collects the data of the servers from the net

deregisterServer(self, ip, pid, port)

Deregisters a server
Parameters:
ip - IP of the server
pid - Die PID at the server
port - the port at which the server is listening

forwardCommand(self, ip, port, cmd)

Forwards a RPC to another machine
Parameters:
ip - IP of the server
port - the port at which the server is listening
cmd - the command that should be executed there
Returns:
the result of the command

kill(self)

Exits the server

list(self)

Returns a list of the found Foam-Runs

registerServer(self, ip, pid, port, external=False)

Registers a new server via XMLRPC
Parameters:
ip - IP of the server
pid - Die PID at the server
port - the port at which the server is listening

scan(self, additional)

Starts a thread that collects the data of the servers from the net
Parameters:
additional - a string with a list of additional subnets that should be scanned

Generated by Epydoc 2.1 on Mon Jan 22 23:52:48 2007 http://epydoc.sf.net