public class JobRunner extends Object implements Runnable
JobExecutor
for the actual
execution of the job.Modifier and Type | Field and Description |
---|---|
private Agent |
agent |
private Job |
job |
private JobExecutor |
jobExecutor |
private static org.slf4j.Logger |
log
Log job agent events.
|
private JobAgentSettings |
settings |
Constructor and Description |
---|
JobRunner(Agent agent,
Job job,
JobAgentSettings settings,
JobExecutor jobExecutor)
Create a new job execution thread.
|
Modifier and Type | Method and Description |
---|---|
void |
run()
Find a free slot to use and then pass control to the
JobExecutor.executeJob(SessionControl, Agent, Job, JobAgentSettings, Job.ExecutionTime)
method. |
private static final org.slf4j.Logger log
private final Job job
private final JobAgentSettings settings
private final JobExecutor jobExecutor
private final Agent agent
JobRunner(Agent agent, Job job, JobAgentSettings settings, JobExecutor jobExecutor)
agent
- The agent that created this objectjob
- The job to be executedsettings
- The settigns for the plugin that is executing the jobjobExecutor
- The job executor that should execute the jobpublic void run()
JobExecutor.executeJob(SessionControl, Agent, Job, JobAgentSettings, Job.ExecutionTime)
method.