public interface JobOperations extends ResourceOperations
Modifier and Type | Method and Description |
---|---|
JobDefinitionResource |
createJob(java.lang.String name,
java.lang.String defintion,
java.lang.String dateFormat,
java.lang.String numberFormat,
boolean makeUnique,
boolean deploy)
Create a new Job, optionally deploying it.
|
JobExecutionInfoResource |
displayJobExecution(long jobExecutionId)
Retrieve a specific Job Execution for the provided
jobExecutionId . |
void |
launchJob(java.lang.String name,
java.lang.String jobParameters)
Launch a job that is already deployed.
|
org.springframework.hateoas.PagedResources<JobDefinitionResource> |
list()
List jobs known to the system.
|
java.util.List<JobExecutionInfoResource> |
listJobExecutions()
List all Job Executions.
|
java.util.List<StepExecutionInfoResource> |
listStepExecutions(long jobExecutionId)
|
StepExecutionProgressInfoResource |
stepExecutionProgress(long jobExecutionId,
long stepExecutionId)
Retrieve step execution progress with the given
jobExecutionId and stepExecutionId . |
void |
stopAllJobExecutions()
Stop all job executions.
|
void |
stopJobExecution(long jobExecutionId)
Stop job execution that is running.
|
deploy, deployAll, destroy, destroyAll, undeploy, undeployAll
JobDefinitionResource createJob(java.lang.String name, java.lang.String defintion, java.lang.String dateFormat, java.lang.String numberFormat, boolean makeUnique, boolean deploy)
void launchJob(java.lang.String name, java.lang.String jobParameters)
name
- the name of the job to launchjobParameters
- the JSON string as jobParametersorg.springframework.hateoas.PagedResources<JobDefinitionResource> list()
java.util.List<JobExecutionInfoResource> listJobExecutions()
JobExecutionInfoResource displayJobExecution(long jobExecutionId)
jobExecutionId
.java.util.List<StepExecutionInfoResource> listStepExecutions(long jobExecutionId)
void stopJobExecution(long jobExecutionId)
void stopAllJobExecutions()
StepExecutionProgressInfoResource stepExecutionProgress(long jobExecutionId, long stepExecutionId)
jobExecutionId
and stepExecutionId
.