@RestController @RequestMapping(value="/jobs/thinexecutions") @ExposesResourceFor(value=JobExecutionThinResource.class) public class JobExecutionThinController extends Object
JobExecutions where the step executions are
not included in the results that are returned.| Constructor and Description |
|---|
JobExecutionThinController(TaskJobService taskJobService)
Creates a
JobExecutionThinController that retrieves Job Execution information
from a the JobService |
| Modifier and Type | Method and Description |
|---|---|
org.springframework.hateoas.PagedModel<JobExecutionThinResource> |
listJobsOnly(org.springframework.data.domain.Pageable pageable,
org.springframework.data.web.PagedResourcesAssembler<TaskJobExecution> assembler)
Return a page-able list of
JobExecutionThinResource defined jobs that
do not contain step execution detail. |
org.springframework.hateoas.PagedModel<JobExecutionThinResource> |
retrieveJobsByDateRange(Date fromDate,
Date toDate,
org.springframework.data.domain.Pageable pageable,
org.springframework.data.web.PagedResourcesAssembler<TaskJobExecution> assembler)
Retrieve all task job executions filtered with the date range specified
|
org.springframework.hateoas.PagedModel<JobExecutionThinResource> |
retrieveJobsByJobInstanceId(int jobInstanceId,
String schemaTarget,
org.springframework.data.domain.Pageable pageable,
org.springframework.data.web.PagedResourcesAssembler<TaskJobExecution> assembler)
Retrieve all task job executions filtered with the job instance id specified
|
org.springframework.hateoas.PagedModel<JobExecutionThinResource> |
retrieveJobsByName(String jobName,
org.springframework.data.domain.Pageable pageable,
org.springframework.data.web.PagedResourcesAssembler<TaskJobExecution> assembler)
Retrieve all task job executions with the task name specified
|
org.springframework.hateoas.PagedModel<JobExecutionThinResource> |
retrieveJobsByTaskExecutionId(int taskExecutionId,
String schemaTarget,
org.springframework.data.domain.Pageable pageable,
org.springframework.data.web.PagedResourcesAssembler<TaskJobExecution> assembler)
Retrieve all task job executions filtered with the task execution id specified
|
@Autowired public JobExecutionThinController(TaskJobService taskJobService)
JobExecutionThinController that retrieves Job Execution information
from a the JobServicetaskJobService - the service this controller will use for retrieving job
execution information. Must not be null.@RequestMapping(value="", method=GET, produces="application/json") @ResponseStatus(value=OK) public org.springframework.hateoas.PagedModel<JobExecutionThinResource> listJobsOnly(org.springframework.data.domain.Pageable pageable, org.springframework.data.web.PagedResourcesAssembler<TaskJobExecution> assembler) throws org.springframework.batch.core.launch.NoSuchJobExecutionException
JobExecutionThinResource defined jobs that
do not contain step execution detail.pageable - page-able collection of TaskJobExecutions.assembler - for the TaskJobExecutionsorg.springframework.batch.core.launch.NoSuchJobExecutionException - in the event that a job execution id specified
is not present when looking up stepExecutions for the result.@RequestMapping(value="", method=GET, params="name", produces="application/json") @ResponseStatus(value=OK) public org.springframework.hateoas.PagedModel<JobExecutionThinResource> retrieveJobsByName(@RequestParam(value="name") String jobName, org.springframework.data.domain.Pageable pageable, org.springframework.data.web.PagedResourcesAssembler<TaskJobExecution> assembler) throws org.springframework.batch.core.launch.NoSuchJobException
jobName - name of the jobpageable - page-able collection of TaskJobExecutions.assembler - for the TaskJobExecutionsorg.springframework.batch.core.launch.NoSuchJobException - if the job with the given name does not exist.@RequestMapping(value="", method=GET, params={"fromDate","toDate"}, produces="application/json") @ResponseStatus(value=OK) public org.springframework.hateoas.PagedModel<JobExecutionThinResource> retrieveJobsByDateRange(@RequestParam(value="fromDate") @DateTimeFormat(pattern="yyyy-MM-dd\'T\'HH:mm:ss,SSS") Date fromDate, @RequestParam(value="toDate") @DateTimeFormat(pattern="yyyy-MM-dd\'T\'HH:mm:ss,SSS") Date toDate, org.springframework.data.domain.Pageable pageable, org.springframework.data.web.PagedResourcesAssembler<TaskJobExecution> assembler) throws org.springframework.batch.core.launch.NoSuchJobException
fromDate - the date which start date must be greater than.toDate - the date which start date must be less than.pageable - page-able collection of TaskJobExecutions.assembler - for the TaskJobExecutionsorg.springframework.batch.core.launch.NoSuchJobException - if the job with the given name does not exist.@RequestMapping(value="", method=GET, params="jobInstanceId", produces="application/json") @ResponseStatus(value=OK) public org.springframework.hateoas.PagedModel<JobExecutionThinResource> retrieveJobsByJobInstanceId(@RequestParam(value="jobInstanceId") int jobInstanceId, @RequestParam(value="schemaTarget",required=false) String schemaTarget, org.springframework.data.domain.Pageable pageable, org.springframework.data.web.PagedResourcesAssembler<TaskJobExecution> assembler) throws org.springframework.batch.core.launch.NoSuchJobException
jobInstanceId - the job instance id associated with the execution.pageable - page-able collection of TaskJobExecutions.assembler - for the TaskJobExecutionsorg.springframework.batch.core.launch.NoSuchJobException - if the job with the given name does not exist.@RequestMapping(value="", method=GET, params="taskExecutionId", produces="application/json") @ResponseStatus(value=OK) public org.springframework.hateoas.PagedModel<JobExecutionThinResource> retrieveJobsByTaskExecutionId(@RequestParam(value="taskExecutionId") int taskExecutionId, @RequestParam(value="schemaTarget",required=false) String schemaTarget, org.springframework.data.domain.Pageable pageable, org.springframework.data.web.PagedResourcesAssembler<TaskJobExecution> assembler) throws org.springframework.batch.core.launch.NoSuchJobException
taskExecutionId - the task execution id associated with the execution.pageable - page-able collection of TaskJobExecutions.assembler - for the TaskJobExecutionsorg.springframework.batch.core.launch.NoSuchJobException - if the job with the given name does not exist.Copyright © 2023 Pivotal Software, Inc.. All rights reserved.