
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)
JobExecutionSelectorselect in interface JobExecutionSelectorjobExecution - the job execution to check for matchallJobExecutionIds - all job execution idsjobExecution matches this selector's requirement; false otherwisepublic javax.batch.runtime.context.JobContext getJobContext()
JobExecutionSelectorgetJobContext in interface JobExecutionSelectorpublic void setJobContext(javax.batch.runtime.context.JobContext jobContext)
JobExecutionSelectorsetJobContext in interface JobExecutionSelectorjobContext - the job context for this selectorpublic javax.batch.runtime.context.StepContext getStepContext()
JobExecutionSelectorgetStepContext in interface JobExecutionSelectorpublic void setStepContext(javax.batch.runtime.context.StepContext stepContext)
JobExecutionSelectorsetStepContext in interface JobExecutionSelectorstepContext - the step contextCopyright © 2018 JBoss by Red Hat. All rights reserved.