public interface JobOperations extends ResourceOperations
Modifier and Type | Method and Description |
---|---|
JobDefinitionResource |
createJob(java.lang.String name,
java.lang.String defintion,
boolean deploy)
Create a new Job, optionally deploying it.
|
JobExecutionInfoResource |
displayJobExecution(long jobExecutionId)
Retrieve a specific Job Execution for the provided
jobExecutionId . |
JobInstanceInfoResource |
displayJobInstance(long instanceId)
Retrieve a specific instance of a job, given its intanceId.
|
StepExecutionInfoResource |
displayStepExecution(long jobExecutionId,
long stepExecutionId)
|
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)
|
void |
restartJobExecution(long jobExecutionId)
Restart a given job execution.
|
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, destroy, destroyAll, undeploy, undeployAll
JobDefinitionResource createJob(java.lang.String name, java.lang.String defintion, 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 restartJobExecution(long jobExecutionId)
void stopAllJobExecutions()
StepExecutionProgressInfoResource stepExecutionProgress(long jobExecutionId, long stepExecutionId)
jobExecutionId
and stepExecutionId
.StepExecutionInfoResource displayStepExecution(long jobExecutionId, long stepExecutionId)
JobInstanceInfoResource displayJobInstance(long instanceId)