Class TaskStoppedException

  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by com.parabon.runtime.TaskStoppedException
All Implemented Interfaces:

public class TaskStoppedException
extends java.lang.Exception

Report that a task's run method has exited because the stop method was called. A task should exit from its run method by throwing an instance of this exception if and only if (1) its stop method was called before its run method completed successfully, and (2) its run method is exiting before successfully completing the task because of the invocation of the stop method. This process permits a graceful shutdown process of a task, giving a task a chance to possibly report a last checkpoint. If stop is called but the run method exits without throwing a TaskStoppedException, the runtime system may or may not assume that the run method completed successfully, even though the stop method had been called.

See Also:
Serialized Form

Constructor Summary
Method Summary
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait

Constructor Detail


public TaskStoppedException()