Package gnue :: Package common :: Package rpc :: Package drivers :: Module Base :: Class ProxyMethod
[show private | hide private]

Class ProxyMethod

Known Subclasses:
ObjectProxyMethod, ObjectProxyMethod

A ProxyMethod provides a callable for a method in a RPC server. This method will be executed by the given Client adapter.
Method Summary
  __init__(self, adapter, methodname)
  __call__(self, *args, **params)
Execute the wrapped RPC-Method via Client adapter using the given positional and keyword-arguments.
  __getattr__(self, name)
Support for nested methods, e.g.
  __repr__(self)
  __str__(self)

Method Details

__init__(self, adapter, methodname)
(Constructor)

Parameters:
adapter - Client instance implementing a _callMethod_ function
methodname - name of the method be called

__call__(self, *args, **params)
(Call operator)

Execute the wrapped RPC-Method via Client adapter using the given positional and keyword-arguments.

Note: not all RPC adapter can handle keyword arguments, so take care.

__getattr__(self, name)
(Qualification operator)

Support for nested methods, e.g. system.listMethods.
Parameters:
name - name of the attribute in question
Returns:
ProxyMethod instance pointing to the nested method

__repr__(self)
(Representation operator)

__str__(self)
(Informal representation operator)



GNUe Home

Public API

Developer's Corner