next up previous
Next: Partial Implementation of Real Up: Library Classes Previous: Partial Implementation of Container

Partial Implementation of ARC Object

As shown in Figure 4, class Real realizes interfaces IPushRequest and IRealUtil. Class PReal implements methods that can be invoked from within the executing code of a migrated ARC object, such as through Trigger. These methods include push() from interface IPushRequest, isRetractionSet(), RegisterForRemoteAccess and UnregisterForRemoteAccess from interface IRealUtil.

Method push() from interface IPushRequest allows a migrated object to re-hop to another remote machine. However, this non-blocking request is fulfilled only after completion of an executing trigger. Method isRetractionSet() is used to check the status of retraction flag which is settable from originating application code as discussed above. In addition to these two methods, a migrated ARC object may register itself for remoting through RegisterForRemoting immediately after migration, and unregister just before migration or retraction. These member functions are available for an ARC object, and their use is optional.



R K Joshi 2003-05-08