|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.sourceforge.basher.tasks.AbstractTask
public abstract class AbstractTask
A base implementation of the Task interface. Provides some basic helper methods for dealing with
a task execution.
| Field Summary | |
|---|---|
protected org.apache.commons.logging.Log |
_log
Instance logger |
| Constructor Summary | |
|---|---|
AbstractTask()
|
|
| Method Summary | |
|---|---|
boolean |
equals(Object o)
|
protected void |
failed(String reason)
Convenience method for sub-classes to signal a failure. |
protected void |
failed(String reason,
Throwable cause)
Convenience method for sub-classes to signal a failure. |
int |
hashCode()
|
protected void |
notRun(String reason,
Throwable cause)
Convenience method for sub-classes to signal a not run. |
void |
setLog(org.apache.commons.logging.Log log)
Sets the Log instance for this Task instance. |
String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface net.sourceforge.basher.Task |
|---|
executeTask |
| Field Detail |
|---|
protected org.apache.commons.logging.Log _log
| Constructor Detail |
|---|
public AbstractTask()
| Method Detail |
|---|
protected void notRun(String reason,
Throwable cause)
reason - The reason for not runningcause - The (optional) cause of not run
TaskNotRunException - Will ALWAYS throw a TaskNotRunException to indicate the task didn't run.
protected void failed(String reason,
Throwable cause)
reason - The reason for the failurecause - The (optional) cause of the failure
TaskFailedException - Will ALWAYS throw a TaskFailedException to indicate a failure.protected void failed(String reason)
reason - The reason for the failure
TaskFailedException - Will ALWAYS throw a TaskFailedException to indicate a failure.public void setLog(org.apache.commons.logging.Log log)
Log instance for this Task instance.
log - The log instance to use for logging.public String toString()
toString in class Objectpublic boolean equals(Object o)
equals in class Objectpublic int hashCode()
hashCode in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||