| java.lang.Object org.jasig.portal.utils.threading.BaseTask
All known Subclasses: org.jasig.portal.services.stats.StatsRecorderWorkerTask, org.jasig.portal.utils.threading.RunnableTask,
BaseTask | abstract public class BaseTask implements Task(Code) | | A convenience base task class for subclasses.
Introduces an execute() method which declares throws Exception ,
which subclasses may override. Any Exception thrown from execute
will be caught and stored, to be accessible through getException
NOTE: Throwable is not caught to avoid catching Error s
author: Aaron Hamid (arh14 at cornell dot edu) |
execute | abstract public void execute() throws Exception(Code) | | Subclasses should implement this method
NOTE: not declaring throws Throwable. We shouldn't really catch Errors, should we?
throws: Exception - |
getException | public Exception getException()(Code) | | Returns the exception that was thrown during execution, if any
the exception that was thrown during execution, if any |
run | public void run()(Code) | | Run implementation which delegates to execute() .
Catches and stores any exception execute() throws.
See Also: BaseTask.execute() |
setException | protected void setException(Exception e)(Code) | | Only subclasses are allowed to use this
Parameters: e - exception to set |
|
|