Java Reference
In-Depth Information
Table 5-2. Methods Available on the JobOperator
Method
Description
java.util.List<java.lang.Long>
getExecutions( long instanceId )
Returns an ordered list of JobExecution id s
associated with the JobInstance identified. The
list in order of creation/execution from newest
to oldest.
java.util.List<java.lang.Long>
getJobInstances( java.lang.String jobName,
int start, int count)
Returns the id s for each JobInstance for the job
name requested starting with the index
provided via the start parameter, in reverse
chronological order (newest to oldest). The
count is the maximum number of id s to be
returned.
java.util.Set<java.lang.String>
getJobNames()
Returns all job names available to be executed
via the JobOperator.start method.
java.lang.String getParameters(long
executionId)
Returns the job parameters used for the
requested JobExecution in a human-readable
string.
java.util.Set<java.lang.Long>
getRunningExecutions( java.lang.String
jobName )
Returns the id s of all currently running (no end
time) JobExecutions for the job with the name
passed.
java.util.Map<java.lang.Long,
java.lang.String>
getStepExecutionSummaries( long executionId
)
Provides a summary (status, start and end
times, and so on) of the each StepExecution
related to the JobExecution specified.
java.lang.String getSummary( long
executionId )
Returns a summary of the JobExecution
specified (status, start and end times, and so
on).
java.lang.Long restart( long executionId )
Restarts a JobExecution in the FAILED or STOPPED
state.
java.lang.Long start(java.lang.String
jobName, java.lang.String parameters)
Starts a new JobInstance of the job specified
with the parameters passed.
java.lang.Long startNextInstance
(java.lang.String jobName )
Performs the programmatic equivalent of
running a job with the -next parameter and a
JobParametersIncrementer configured.
 
 
Search WWH ::




Custom Search