public interface BatchService
| Modifier and Type | Method and Description |
|---|---|
javax.batch.runtime.JobExecution |
abandon(long executionId)
Marks the job execution as abandoned.
|
int |
countJobInstances(String jobName)
Count the number of job instances in the repository for a given job name.
|
int |
countJobs()
Count the number of currently registered job names
|
List<javax.batch.runtime.JobExecution> |
getExecutions(long instanceId)
List the job executions associated with a particular job instance.
|
List<BatchParameter<?>> |
getParameters(long executionId)
Get the job parameters used by a particular job execution
|
List<javax.batch.runtime.JobExecution> |
getRunningExecutions(String jobname)
List the running job executions for a given job name.
|
boolean |
isLaunchable(String jobName)
Convenience method to determine if a job is available for launching
|
boolean |
isLaunchableNextInstance(String jobName)
Convenience method to determine if a job is available for launching as a sequence of instances.
|
Long |
launch(String jobName,
BatchParameter<?>... parameters)
Launch a job with the parameters provided.
|
Long |
launchNextInstance(String jobName)
Launch the next in a sequence of instances.
|
List<Long> |
listJobInstances(String jobName,
int start,
int count)
List a page of job instances for a given job name.
|
List<String> |
listJobs(int start,
int count)
List a page of currently registered job names
|
Long |
restart(long executionId)
Restarts a stopped job execution.
|
boolean |
stop(long executionId)
Send a stop signal to a running job execution
|
int countJobs()
List<String> listJobs(int start, int count)
start - the start index of the instances to returncount - the maximum number of instances to returnboolean isLaunchable(String jobName)
jobName - the name of the jobLong launch(String jobName, BatchParameter<?>... parameters)
jobName - the name of the jobparameters - the BatchParameterboolean isLaunchableNextInstance(String jobName)
jobName - the name of the jobLong launchNextInstance(String jobName)
jobName - the name of the jobint countJobInstances(String jobName)
jobName - the name of the jobList<Long> listJobInstances(String jobName, int start, int count)
jobName - the name of the jobstart - the start index of the instances to returncount - the maximum number of instances to returnList<javax.batch.runtime.JobExecution> getExecutions(long instanceId)
instanceId - the id of the job instanceList<javax.batch.runtime.JobExecution> getRunningExecutions(String jobname)
jobname - the name of the jobList<BatchParameter<?>> getParameters(long executionId)
executionId - the id of the job executionboolean stop(long executionId)
executionId - the id of the job executionLong restart(long executionId)
executionId - the if of the job executionjavax.batch.runtime.JobExecution abandon(long executionId)
executionId - the if of the job executionCopyright © 2017–2020 NTT DATA Corporation. All rights reserved.