next up previous contents
Next: Other failures-Jini leasing Up: Process creation and monitoring Previous: The MPJ client

Handling MPJ aborts-Jini events

If any slave JVM terminates unexpectedly while the runTask method is in progress, a RemoteException will be passed to the thread that started the remote call. The thread should catch the exception, and generate an MPJAbort event. This is a Jini remote event--a subclass of RemoteEvent. Early in the process of creating a slave, the MPJ daemons will have registered themselves with the client as handlers for MPJAbort events. Their notify method will apply the destroy method to the appropriate slave Process object.

Hence if any slave aborts (while the network connection stays good), all remaining slave processes associated with the job are immediately destroyed.



Bryan Carpenter
Tue Nov 23 10:50:26 EST 1999