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

Class FoamServer

source code

        object --+        
                 |        
threading._Verbose --+    
                     |    
      threading.Thread --+
                         |
                        FoamServer

This is the class that serves the requests about the FOAM-Run

Instance Methods [hide private]
 
__init__(self, run=None, master=None, lines=100)
x.__init__(...) initializes x; see x.__class__.__doc__ for signature
source code
 
run(self) source code
 
info(self)
Returns the IP, the PID and the port of the server (as one tuple)
source code
 
kill(self)
Interrupts the FOAM-process (and kills the server)
source code
 
killServer(self)
Kills the server process
source code
 
register(self)
Tries to register with the Meta-Server
source code
 
deregister(self)
Tries to deregister with the Meta-Server
source code
 
_insertLine(self, line)
Inserts a new line, not to be called via XMLRPC
source code

Inherited from threading.Thread: __repr__, getName, isAlive, isDaemon, join, setDaemon, setName, start

Inherited from threading.Thread (private): _set_daemon

Inherited from threading._Verbose (private): _note

Inherited from object: __delattr__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __setattr__, __str__

Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__init__(self, run=None, master=None, lines=100)
(Constructor)

source code 

x.__init__(...) initializes x; see x.__class__.__doc__ for signature

Parameters:
  • run - The thread that controls the run
  • master - The Runner-Object that controls everything
  • lines - the number of lines the server should remember
Overrides: object.__init__

run(self)

source code 
Overrides: threading.Thread.run