org.objectweb.proactive.EndActive Interface Reference

Inheritance diagram for org.objectweb.proactive.EndActive:

Inheritance graph
[legend]
Collaboration diagram for org.objectweb.proactive.EndActive:

Collaboration graph
[legend]
List of all members.

Public Member Functions

void endActivity (Body body)
 Finalized the active object after the activity has been stopped.

Detailed Description

EndActive is related to the finalization of an active object. The finalization of the activity is done only once when the object stops to be active and becomes unusable. In case of a migration, an active object stops its activity before restarting on a new VM automatically without finalization.

An object implementing this interface can be invoked to perform the finalization work after the activity is ended. The object being reified as an active object can implement this interface or an external class can also be used.

It is generally the role of the body of the active object to perform the call on the object implementing this interface.

It is hard to ensure that the endActivity method will indeed be invoked at the end of the activity. Error, Exception, customized activity that never ends or sudden death of the JVM can prevents this method to be called by the body of the active object.

Author:
ProActive Team
Version:
1.0, 2002/06
Since:
ProActive 0.9.3

Definition at line 62 of file EndActive.java.


Member Function Documentation

void org.objectweb.proactive.EndActive.endActivity ( Body  body  ) 

Finalized the active object after the activity has been stopped.

Parameters:
body the body of the active object being finalized.

Implemented in org.objectweb.proactive.core.component.body.ComponentActivity, org.objectweb.proactive.p2p.service.node.P2PNodeLookup, and org.objectweb.proactive.p2p.service.node.P2PNodeManager.

Referenced by org.objectweb.proactive.core.component.body.ComponentActivity.endActivity(), org.objectweb.proactive.core.body.ActiveBody.run(), and org.objectweb.proactive.core.component.body.ComponentActivity.runActivity().


The documentation for this interface was generated from the following file:
Generated on Mon Jan 22 15:16:13 2007 for ProActive by  doxygen 1.5.1