Package 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 theInternalJobQueue.jobDone(JobRunner)
method when finished.
-
-
Constructor Summary
Constructors Modifier Constructor Description private
JobRunner(JobData jobData, Job.ExecutionTime slot)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description private JobData
getJob()
Get the job.private Job.ExecutionTime
getUsedSlot()
The slot the job is executing in.void
run()
Execute the job.
-
-
-
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
-
JobRunner
private JobRunner(JobData jobData, Job.ExecutionTime slot)
-
-
Method Detail
-
getUsedSlot
private Job.ExecutionTime getUsedSlot()
The slot the job is executing in.
-
getJob
private JobData getJob()
Get the job.
-
-