org.objectweb.proactive
Interface EndActive

All Superinterfaces:
Active
All Known Implementing Classes:
ComponentActivity, P2PNodeLookup, P2PNodeManager

public interface EndActive
extends Active

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.

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

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

Method Detail

endActivity

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

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


Copyright 2001-2007 INRIA All Rights Reserved.