IMP  2.0.1
The Integrative Modeling Platform
IMP.isd.PyroGrid.PyroProxy Class Reference

This is high level wrapper of Pyro proxy objects, returns immediately with an empty Result object. More...

Inherits Thread.

Detailed Description

Used to be able to be used alone (without a grid) since it could take care of clashing invocations.

REMARK:

Calls always has to be in the following order:

proxy = g.acquire_service(service_id) ## returns proxy object

proxy.set_parameters(p)  # these functions will be performed sequentally
proxy.f()                # and service won't be freed
proxy.g()                # unless .release_service() is called

g.release_service(proxy)

However if g.acquire_service call is followed immediately by
g.release_service, without calling proxy.f() or other proxy functions,
service will never be actually freed. Because service is freed from
inside PyroProxy in the run() cycle.
Note
This class is only available in Python.

Definition at line 49 of file PyroGrid.py.


The documentation for this class was generated from the following file: