| Modifier and Type | Method and Description |
|---|---|
| public void | |
| public JobExecution | Returns: job executionspecifies the job execution. executionId)Return job execution for specified execution id. |
| public List | Returns: list of job executionsspecifies the job instance. instance)Return all job executions belonging to the specified job instance. |
| public JobInstance | Returns: job instancespecifies the job execution. executionId)Return the job instance for the specified execution id. |
| public int | Returns: count of instances of the named job.specifies the name of the job. jobName)Returns number of instances of a job with a particular name. |
| public List | Returns: list of JobInstances.specifies the job name. jobName, int specifies the relative starting number (zero based) to
return from the
maximal list of job instances. start, int specifies the number of job instances to return from the
starting position of the maximal list of job instances. count)Returns all JobInstances belonging to a job with a particular name in reverse chronological order. |
| public Set | |
| public Properties | Returns: a Properties object containing the key/value job parameter pairs.specifies the execution from which to retrieve the
parameters. executionId)Returns job parameters for a specified job instance. |
| public List | Returns: a list of execution ids.specifies the job name. jobName)Returns execution ids for job instances with the specified name that have running executions. |
| public List | Returns: step executions (order not guaranteed)specifies the job execution. jobExecutionId)Return StepExecutions for specified execution id. |
| public long | Returns: new executionIdspecifies the execution to to restart. This execution
must be the most recent execution that ran. executionId, Properties specifies the keyword/value pairs for attribute
substitution in the Job XML. restartParameters)Restarts a failed or stopped job instance, which executes asynchronously. |
| public long | Returns: executionId for the job execution.specifies the name of the Job XML describing the job. jobXMLName, Properties specifies the keyword/value pairs for attribute
substitution in the Job XML. jobParameters)Creates a new job instance and starts the first execution of that instance, which executes asynchronously. |
| public void | stop(long
specifies the job execution to stop.
The job execution must be running. executionId)Request a running job execution stops. |
| abandon | back to summary |
|---|---|
| public void abandon(long executionId) throws NoSuchJobExecutionException, JobExecutionIsRunningException, JobSecurityException Set batch status to ABANDONED. The instance must have no running execution. Note that ABANDONED executions cannot be restarted.
| |
| getJobExecution | back to summary |
|---|---|
| public JobExecution getJobExecution(long executionId) throws NoSuchJobExecutionException, JobSecurityException Return job execution for specified execution id.
| |
| getJobExecutions | back to summary |
|---|---|
| public List Return all job executions belonging to the specified job instance.
| |
| getJobInstance | back to summary |
|---|---|
| public JobInstance getJobInstance(long executionId) throws NoSuchJobExecutionException, JobSecurityException Return the job instance for the specified execution id.
| |
| getJobInstanceCount | back to summary |
|---|---|
| public int getJobInstanceCount(String jobName) throws NoSuchJobException, JobSecurityException Returns number of instances of a job with a particular name.
| |
| getJobInstances | back to summary |
|---|---|
| public List Returns all JobInstances belonging to a job with a particular name in reverse chronological order.
| |
| getJobNames | back to summary |
|---|---|
| public Set Returns a set of all job names known to the batch runtime.
| |
| getParameters | back to summary |
|---|---|
| public Properties getParameters(long executionId) throws NoSuchJobExecutionException, JobSecurityException Returns job parameters for a specified job instance. These are the key/value pairs specified when the instance was originally created by the start method.
| |
| getRunningExecutions | back to summary |
|---|---|
| public List Returns execution ids for job instances with the specified name that have running executions.
| |
| getStepExecutions | back to summary |
|---|---|
| public List Return StepExecutions for specified execution id.
| |
| restart | back to summary |
|---|---|
| public long restart(long executionId, Properties restartParameters) throws JobExecutionAlreadyCompleteException, NoSuchJobExecutionException, JobExecutionNotMostRecentException, JobRestartException, JobSecurityException Restarts a failed or stopped job instance, which executes asynchronously.
| |
| start | back to summary |
|---|---|
| public long start(String jobXMLName, Properties jobParameters) throws JobStartException, JobSecurityException Creates a new job instance and starts the first execution of that instance, which executes asynchronously. Note the Job XML describing the job is first searched for by name according to a means prescribed by the batch runtime implementation. This may vary by implementation. If the Job XML is not found by that means, then the batch runtime must search for the specified Job XML as a resource from the META-INF/batch-jobs directory based on the current class loader. Job XML files under META-INF/batch-jobs directory follow a naming convention of "name".xml where "name" is the value of the jobXMLName parameter (see below).
| |
| stop | back to summary |
|---|---|
| public void stop(long executionId) throws NoSuchJobExecutionException, JobExecutionNotRunningException, JobSecurityException Request a running job execution stops. This method notifies the job execution to stop and then returns. The job execution normally stops and does so asynchronously. Note JobOperator cannot guarantee the jobs stops: it is possible a badly behaved batch application does not relinquish control. Note for partitioned batchlet steps the Batchlet stop method is invoked on each thread actively processing a partition.
| |