IMP logo
Public Member Functions
IMP.isd.PyroGrid.PyroProxy Class Reference

Detailed Description

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

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.

List of all members.

Public Member Functions

def __init__
 pyro_proxy = raw Pyro proxy object
def __getattr__
def __setattr__
def __str__
def ishalted
def run
def terminate

Constructor & Destructor Documentation

def IMP.isd.PyroGrid.PyroProxy.__init__ (   self,
  pyro_proxy,
  debug = False,
  verbose = False 
)

pyro_proxy = raw Pyro proxy object

      

Member Function Documentation

def IMP.isd.PyroGrid.PyroProxy.terminate (   self,
  terminate_proxy = 0 
)
  1. unregister Pyro URI from nameserver
  2. close remote python process

therefore terminate_proxy should be 0


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

Generated on Tue May 22 2012 23:33:36 for IMP by doxygen 1.8.1