Package ghidra.util.worker
Class Job
java.lang.Object
ghidra.util.worker.Job
- Direct Known Subclasses:
IncrementalLoadJob
,PriorityJob
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
cancel()
getError()
boolean
hasError()
boolean
boolean
abstract void
run
(TaskMonitor monitor) The method that gets called by the Worker when this job is selected to be run by the Worker.void
void
protected void
setTaskMonitor
(TaskMonitor monitor)
-
Constructor Details
-
Job
public Job()
-
-
Method Details
-
run
The method that gets called by the Worker when this job is selected to be run by the Worker.- Parameters:
monitor
- the monitor- Throws:
CancelledException
- jobs may choose to throw a cancelled exception
-
isCompleted
public boolean isCompleted() -
setCompleted
public void setCompleted() -
isCancelled
public boolean isCancelled() -
setError
-
hasError
public boolean hasError() -
getError
-
cancel
public void cancel() -
setTaskMonitor
-