gnu.cajo
Interface Service.Proxy

All Superinterfaces:
java.io.Serializable
Enclosing interface:
Service

public static interface Service.Proxy
extends java.io.Serializable

This class is both used by servers to install proxies in a client's JVM, and by clients to install proxies in a server's JVM. A proxy is a serialisable object that on arrival at the target JVM, is initialised with a local to the service object, on which it can communicate. A service would send proxies to offload client processing and storage needs. A client would send proxies to perform highly interactive operation, on potentially large datasets.


Method Summary
 void init(java.lang.Object service)
          called by the client on receiving a proxy object.
 

Method Detail

init

void init(java.lang.Object service)
called by the client on receiving a proxy object. The proxy can then prepare itself for operation. However, this method should return quickly; therefore, proxies requiring lengthy initialisation times should perform such work in an internally created thread.

Parameters:
service - a reference to the service object, local for client proxies, remote for service proxies.