org.filteredpush.triage.api
Class AbstractJob
java.lang.Object
org.filteredpush.triage.api.AbstractJob
- All Implemented Interfaces:
- java.lang.Cloneable
- Direct Known Subclasses:
- ApplePieAddAnalysisJob, ApplePieAnnotationJob, ApplePieFindDuplicatesJob, ApplePieRegisterInterestJob, ApplePieRunAnalysisJob, ApplePieSparqlQueryJob, ErrorJob, PingJob
public abstract class AbstractJob
- extends java.lang.Object
- implements java.lang.Cloneable
The base class for a strategy pattern implementation of Jobs. A concrete job planner acts as a factory to return an appropriate instance of a subclass of AbstractJob. Triage passes this job to an instance of the JobRunner, which invokes the execute() method on the job.
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AbstractJob
public AbstractJob()
execute
public void execute()
throws JobExecutionException
- Throws:
JobExecutionException
getMessage
public FPMessage getMessage()
setMessage
public void setMessage(FPMessage value)
getStatus
public Status getStatus()
clone
public AbstractJob clone()
throws java.lang.CloneNotSupportedException
- Overrides:
clone in class java.lang.Object
- Throws:
java.lang.CloneNotSupportedException