2.17.2: 2011-06-17

net.sf.basedb.core
Class InternalJobQueue.JobRunner

java.lang.Object
  extended by 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 Summary
private  JobData jobData
           
private  int jobId
           
private  int ownerId
           
private  Job.ExecutionTime slot
           
 
Constructor Summary
private InternalJobQueue.JobRunner(JobData jobData, Job.ExecutionTime slot)
           
 
Method Summary
private  JobData getJob()
          Get the job.
private  Job.ExecutionTime getUsedSlot()
          The slot the job is executing in.
 void run()
          Execute the job.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

jobData

private final JobData jobData

jobId

private final int jobId

ownerId

private final int ownerId

slot

private final Job.ExecutionTime slot
Constructor Detail

InternalJobQueue.JobRunner

private InternalJobQueue.JobRunner(JobData jobData,
                                   Job.ExecutionTime slot)
Method Detail

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.


2.17.2: 2011-06-17