Package ghidra.util.worker
Class Job
- java.lang.Object
-
- ghidra.util.worker.Job
-
- Direct Known Subclasses:
IncrementalLoadJob,PriorityJob
public abstract class Job extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description Job()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description voidcancel()java.lang.ThrowablegetError()booleanhasError()booleanisCancelled()booleanisCompleted()abstract voidrun(TaskMonitor monitor)The method that gets called by the Worker when this job is selected to be run by the Worker.voidsetCompleted()voidsetError(java.lang.Throwable t)protected voidsetTaskMonitor(TaskMonitor monitor)
-
-
-
Method Detail
-
run
public abstract void run(TaskMonitor monitor) throws CancelledException
The method that gets called by the Worker when this job is selected to be run by the Worker.- Throws:
CancelledException
-
isCompleted
public boolean isCompleted()
-
setCompleted
public void setCompleted()
-
isCancelled
public boolean isCancelled()
-
setError
public void setError(java.lang.Throwable t)
-
hasError
public boolean hasError()
-
getError
public java.lang.Throwable getError()
-
cancel
public void cancel()
-
setTaskMonitor
protected void setTaskMonitor(TaskMonitor monitor)
-
-