- All Implemented Interfaces:
public class WarrantShutdownTask extends AbstractShutDownTask
Constructor specifies the warning message and action to take
name- the name of the task (used in logs)
Ask if shut down is allowed.
The shut down manager calls this method first on all the tasks before starting to execute the method
ShutDownTask.run()on the tasks.
If this method returns false on any task, the shut down process must be aborted. This implementation merely sets the "doRun" property to true, and should be overridden for any real checking. Note that overriding implementations should call
public void run()Take the necessary action. This method cannot abort the shutdown, and must not require user interaction to complete successfully. This method will be run in parallel to other ShutDownTasks.