Class InternalJobQueue.JobRunner

java.lang.Object
net.sf.basedb.core.InternalJobQueue.JobRunner
All Implemented Interfaces:
Runnable
Enclosing class:
InternalJobQueue

private class InternalJobQueue.JobRunner extends Object implements Runnable
Encapsulates the running of a job in a separate thread. Calls the InternalJobQueue.jobDone(JobRunner) method when finished.
  • Field Details

    • jobData

      private final JobData jobData
    • jobId

      private final int jobId
    • ownerId

      private final int ownerId
    • slot

      private final Job.ExecutionTime slot
  • Constructor Details

  • Method Details

    • run

      public void run()
      Execute the job.
      Specified by:
      run in interface Runnable
    • getUsedSlot

      private Job.ExecutionTime getUsedSlot()
      The slot the job is executing in.
    • getJob

      private JobData getJob()
      Get the job.