public interface JobOperations extends ResourceOperations
Modifier and Type | Method and Description |
---|---|
JobDefinitionResource |
createJob(java.lang.String name,
java.lang.String definition,
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.
|
org.springframework.hateoas.PagedResources<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.
|
cleanBusResources, deploy, destroy, destroyAll, undeploy, undeployAll
JobDefinitionResource createJob(java.lang.String name, java.lang.String definition, 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()
org.springframework.hateoas.PagedResources<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)