Package pyamf :: Package remoting :: Package client :: Class ServiceProxy |
[hide private]
[frames] | no frames]

# Class ServiceProxy

source code

Serves as a service object proxy for RPC calls. Generates ServiceMethodProxy objects for method calls.

See Also: RequestWrapper for more info.

Instance Methods | [hide private]
__init__(self, gw, name, auto_execute=True) x.__init__(...) initializes x; see x.__class__.__doc__ for signature | source code
__getattr__(self, name) | source code
_call(self, method_proxy, *args) Executed when a ServiceMethodProxy is called. | source code
__call__(self, *args) This allows services to be 'called' without a method name. | source code
__str__(self) Returns a string representation of the name of the service. | source code
Inherited from `object`: `__delattr__`, `__getattribute__`, `__hash__`, `__new__`, `__reduce__`, `__reduce_ex__`, `__repr__`, `__setattr__`

Instance Variables | [hide private]
| _auto_execute If set to `True`, when a service method is called, the AMF request is immediately sent to the remote gateway and a response is returned.
RemotingService | _gw The parent gateway
`str` | _name The name of the service

Properties | [hide private]
Inherited from `object`: `__class__`

Method Details | [hide private]

### __init__(self, gw, name, auto_execute=True) (Constructor) | source code
x.__init__(...) initializes x; see x.__class__.__doc__ for signature Overrides: object.__init__ (inherited documentation)

### _call(self, method_proxy, *args) | source code
Executed when a ServiceMethodProxy is called. Adds a request to the underlying gateway. If `_auto_execute` is set to `True`, then the request is immediately called on the remote gateway.

### __str__(self) (Informal representation operator) | source code
Returns a string representation of the name of the service. Overrides: object.__str__

Instance Variable Details | [hide private]

### _auto_execute If set to `True`, when a service method is called, the AMF request is immediately sent to the remote gateway and a response is returned. If set to `False`, a RequestWrapper is returned, waiting for the underlying gateway to fire the execute method.