Package pulp :: Package messaging :: Module dispatcher :: Class RMI
[hide private]
[frames] | no frames]

Class RMI

source code

object --+
         |
        RMI

The RMI object performs the invocation.

Instance Methods [hide private]
 
__init__(self, request, catalog)
x.__init__(...) initializes x; see x.__class__.__doc__ for signature
source code
tuple
resolve(self)
Resolve the class/method in the request.
source code
object
getclass(self)
Get an instance of the class specified in the request using the catalog.
source code
instancemethod
getmethod(self, inst)
Get method of the class specified in the request.
source code
Return
__call__(self)
Invoke the method.
source code
 
__str__(self)
str(x)
source code
 
__repr__(self)
repr(x)
source code

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

Instance Variables [hide private]
dict catalog
A dict of class mappings.
Request request
The request envelope.
Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__init__(self, request, catalog)
(Constructor)

source code 

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

Parameters:
  • request (Request) - The request envelope.
  • catalog (dict) - A dict of class mappings.
Overrides: object.__init__

resolve(self)

source code 

Resolve the class/method in the request.

Returns: tuple
A tuple (inst, method)

getclass(self)

source code 

Get an instance of the class specified in the request using the catalog.

Returns: object
An instance of the class.

getmethod(self, inst)

source code 

Get method of the class specified in the request. Ensures that remote invocation is permitted.

Returns: instancemethod
The requested method.

__call__(self)
(Call operator)

source code 

Invoke the method.

Returns: Return
The invocation result.

__str__(self)
(Informal representation operator)

source code 

str(x)

Overrides: object.__str__
(inherited documentation)

__repr__(self)
(Representation operator)

source code 

repr(x)

Overrides: object.__repr__
(inherited documentation)