public final class DefaultJobExecutionSelector extends Object implements JobExecutionSelector
JobExecutionSelector
.Constructor and Description |
---|
DefaultJobExecutionSelector(Boolean excludeRunningJobExecutions)
Constructs
DefaultJobExecutionSelector with
excludeRunningJobExecutions Boolean flag. |
Modifier and Type | Method and Description |
---|---|
javax.batch.runtime.context.JobContext |
getJobContext()
Gets the job context for this selector.
|
javax.batch.runtime.context.StepContext |
getStepContext()
Gets the step context.
|
boolean |
select(javax.batch.runtime.JobExecution jobExecution,
Collection<Long> allJobExecutionIds)
Determines if a job execution matches this selector's requirement.
|
void |
setJobContext(javax.batch.runtime.context.JobContext jobContext)
Sets the job context for this selector.
|
void |
setStepContext(javax.batch.runtime.context.StepContext stepContext)
Sets the step context for this selector.
|
public DefaultJobExecutionSelector(Boolean excludeRunningJobExecutions)
DefaultJobExecutionSelector
with
excludeRunningJobExecutions
Boolean flag.excludeRunningJobExecutions
- if true, this selector will not operate on any running
job executions, and this selector's select(JobExecution, Collection)
method will return false for any running job executions. This is the default
behavior.
If false, running job executions will be treated no differently than other
job executions.public boolean select(javax.batch.runtime.JobExecution jobExecution, Collection<Long> allJobExecutionIds)
JobExecutionSelector
select
in interface JobExecutionSelector
jobExecution
- the job execution to check for matchallJobExecutionIds
- all job execution idsjobExecution
matches this selector's requirement; false otherwisepublic javax.batch.runtime.context.JobContext getJobContext()
JobExecutionSelector
getJobContext
in interface JobExecutionSelector
public void setJobContext(javax.batch.runtime.context.JobContext jobContext)
JobExecutionSelector
setJobContext
in interface JobExecutionSelector
jobContext
- the job context for this selectorpublic javax.batch.runtime.context.StepContext getStepContext()
JobExecutionSelector
getStepContext
in interface JobExecutionSelector
public void setStepContext(javax.batch.runtime.context.StepContext stepContext)
JobExecutionSelector
setStepContext
in interface JobExecutionSelector
stepContext
- the step contextCopyright © 2018 JBoss by Red Hat. All rights reserved.