net.sf.basedb.core
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.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
jobData
private final JobData jobData
jobId
private final int jobId
ownerId
private final int ownerId
slot
private final Job.ExecutionTime slot
InternalJobQueue.JobRunner
private InternalJobQueue.JobRunner(JobData jobData,
Job.ExecutionTime slot)
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.