Next: Partial Implementation of ARC
Up: Library Classes
Previous: Library Classes
As shown in Figure 3, class
PContainer
realizes interface ISync.
Member functions on the ARC object for the use of the originator application
are implemented in this class. They include member functions
push() from interface IPushCommand and member functions sync(),
GracefulRetract() and connect() from interface ISync.
Interface ISync and IPushCommand are visible to the originator application
through interface IContainer, as it can be traced through the class diagram
in Figure 3.
Method push() is used for migration of an ARC object.
Method sync() blocks the caller till the object returns to the originating
application. Method GracefulRetract sets a flag on a migrated ARC object which
may be checked by ARC object's executing code (such as Trigger). ARC object
may return from trigger on observing this flag to be true. Originator
application uses method connect()
to establish connection to migrated ARC object if the latter is registered
for remoting after migration. After a successful connect, application code
may continue to invoke public member functions on the migrated ARC object
through its container.
Next: Partial Implementation of ARC
Up: Library Classes
Previous: Library Classes
R K Joshi
2003-05-08