Class JobTemplate
java.lang.Object
org.springframework.cloud.dataflow.rest.client.JobTemplate
- All Implemented Interfaces:
JobOperations
Implementation for
JobOperations.- Author:
- Glenn Renfro
-
Method Summary
Modifier and TypeMethodDescriptionorg.springframework.hateoas.PagedModel<JobExecutionResource>org.springframework.hateoas.PagedModel<JobExecutionResource>executionListByJobName(String jobName) List job executions known to the system filtered by job name.voidexecutionRestart(long id) Restarts a job by idvoidexecutionRestart(long id, Boolean useJsonJobParameters) Restarts a job by idorg.springframework.hateoas.PagedModel<JobExecutionThinResource>org.springframework.hateoas.PagedModel<JobExecutionThinResource>executionThinListByJobName(String jobName) List job executions without step executions known to the system filtered by job name.org.springframework.hateoas.PagedModel<JobInstanceResource>instanceList(String jobName) jobExecution(long id) Return theJobExecutionResourcefor the id specified.jobInstance(long id) Return theJobInstanceResourcefor the id specified.org.springframework.hateoas.PagedModel<StepExecutionResource>stepExecutionList(long jobExecutionId) List step executions known for a specific job execution id.stepExecutionProgress(long jobExecutionId, long stepExecutionId) Return StepExecutionProgressInfoResource for a specific job execution id and step execution Id.
-
Method Details
-
executionList
- Specified by:
executionListin interfaceJobOperations- Returns:
- the list job executions known to the system.
-
executionRestart
public void executionRestart(long id) Description copied from interface:JobOperationsRestarts a job by id- Specified by:
executionRestartin interfaceJobOperations- Parameters:
id- job execution id
-
executionRestart
Description copied from interface:JobOperationsRestarts a job by id- Specified by:
executionRestartin interfaceJobOperations- Parameters:
id- job execution iduseJsonJobParameters- if trueJobParameterswill be serialized to JSON. Default isNullwhich will serialize theJobParametersto the default specified in SCDF's configuration.
-
executionThinList
- Specified by:
executionThinListin interfaceJobOperations- Returns:
- the list job executions without step executions known to the system.
-
instanceList
- Specified by:
instanceListin interfaceJobOperations- Parameters:
jobName- the name of the job- Returns:
- the list job instances for the specified jobName.
-
executionThinListByJobName
public org.springframework.hateoas.PagedModel<JobExecutionThinResource> executionThinListByJobName(String jobName) Description copied from interface:JobOperationsList job executions without step executions known to the system filtered by job name.- Specified by:
executionThinListByJobNamein interfaceJobOperations- Parameters:
jobName- of the executions.- Returns:
- the list of job executions
-
executionListByJobName
public org.springframework.hateoas.PagedModel<JobExecutionResource> executionListByJobName(String jobName) Description copied from interface:JobOperationsList job executions known to the system filtered by job name.- Specified by:
executionListByJobNamein interfaceJobOperations- Parameters:
jobName- of the executions.- Returns:
- the list of job executions
-
jobExecution
Description copied from interface:JobOperationsReturn theJobExecutionResourcefor the id specified.- Specified by:
jobExecutionin interfaceJobOperations- Parameters:
id- identifier of the job execution- Returns:
JobExecutionResource
-
jobInstance
Description copied from interface:JobOperationsReturn theJobInstanceResourcefor the id specified.- Specified by:
jobInstancein interfaceJobOperations- Parameters:
id- identifier of the job instance- Returns:
JobInstanceResource
-
stepExecutionList
public org.springframework.hateoas.PagedModel<StepExecutionResource> stepExecutionList(long jobExecutionId) Description copied from interface:JobOperationsList step executions known for a specific job execution id.- Specified by:
stepExecutionListin interfaceJobOperations- Parameters:
jobExecutionId- the id of the job execution.- Returns:
- the paged list of step executions
-
stepExecutionProgress
public StepExecutionProgressInfoResource stepExecutionProgress(long jobExecutionId, long stepExecutionId) Description copied from interface:JobOperationsReturn StepExecutionProgressInfoResource for a specific job execution id and step execution Id.- Specified by:
stepExecutionProgressin interfaceJobOperations- Parameters:
jobExecutionId- the id of the job execution for the step to be returned.stepExecutionId- the id step execution to be returned.- Returns:
- the step execution progress info
-