Package ghidra.util.worker

# Class Job

java.lang.Object
ghidra.util.worker.Job

Direct Known Subclasses:
  `IncrementalLoadJob`, `PriorityJob`

public abstract class Job extends Object

- ## Constructor Summary

  Constructors
  Constructor
  Description
  `Job()`

- ## Method Summary

  Modifier and Type
  Method
  Description
  `void`
  `cancel()`
  `Throwable`
  `getError()`
  `boolean`
  `hasError()`
  `boolean`
  `isCancelled()`
  `boolean`
  `isCompleted()`
  `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`
  `setCompleted()`
  `void`
  `setError(Throwable t)`
  `protected void`
  `setTaskMonitor(TaskMonitor monitor)`

  ### Methods inherited from class java.lang.Object

  `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- ## Constructor Details

  - ### Job

    public Job()

- ## Method Details

  - ### 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(Throwable t)

  - ### hasError

    public boolean hasError()

  - ### getError

    public Throwable getError()

  - ### cancel

    public void cancel()

  - ### setTaskMonitor

    protected void setTaskMonitor(TaskMonitor monitor)