next up previous
Next: Container Creation Up: Interfaces and Generated Classes Previous: Communicating with Migrated ARC

Facilitating Remoting with ARC Object

An instance of class FrontEndReal wraps the real ARC object when it migrates to a machine. A front end is required to make a migrated ARC object accessible to other contexts for public method invocation. It can be noted that in order to make an ARC object migratable, class Real object does not inherit from MarshalByRefObject, which is required for making it remotable. Hence, to allow remote access to a migrated ARC object, a front end is used as a mechanism to make a migrating object remotable. This class delegates user requests to Real. When method RegisterForRemoteAccess() is called from inside Trigger(), an instance of class FrontEndReal is created internally, and is initialized to point to the calling real object, thus publish itself as a remotable object. As shown in Figure 4, class FrontEndReal is inherited from the library class PFrontEndReal which provides its implementation partially.



R K Joshi 2003-05-08