Runs on remote side, non-specific object.
It is a tool to launch instances of any picklable object on the remote host (where it resides)
If PyroHandler is idle longer than .timeout time, it kills itself on the remote side (together with all registered instances)
Returns: raw Pyro proxy
Public Member Functions | |
| def | __init__ |
| def | __str__ |
| def | publish |
| delegate = False for descendants of Pyro.core.ObjBase | |
| def | set |
| def | terminate |
| but also it may cause problems when running without xterm (unconfirmed) because it shuts down the python process (daemon.shutdown()) causing connection lost error | |
Public Attributes | |
| debug | |
| host | |
| instance_uri | |
| called from PyroProxy.terminate or on sys.exit (WatchDog call) | |
| nshost | |
| t | |
| watchdog | |
| def IMP.isd.PyroGrid.PyroHandler.publish | ( | self, | |
| instance, | |||
| instance_uri, | |||
| delegate | |||
| ) |
delegate = False for descendants of Pyro.core.ObjBase
Publishes a copy of the instance on the host where PyroHandler is running.
| def IMP.isd.PyroGrid.PyroHandler.terminate | ( | self | ) |
but also it may cause problems when running without xterm (unconfirmed) because it shuts down the python process (daemon.shutdown()) causing connection lost error
| IMP.isd.PyroGrid.PyroHandler.instance_uri |
called from PyroProxy.terminate or on sys.exit (WatchDog call)
— call terminate only if the handler is already terminated (e.g. by hands) then function is not called on the exit — unregister from the nameserver it will waits PyroUtils.default_timeout to let it finish self-unregistration