Public Member Functions | |
void | endActivity (Body body) |
Finalized the active object after the activity has been stopped. |
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.
Definition at line 62 of file EndActive.java.
void org.objectweb.proactive.EndActive.endActivity | ( | Body | body | ) |
Finalized the active object after the activity has been stopped.
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().