@RestController
@RequestMapping(value="${batch.web.monitoring.base:/batch/monitoring}")
public class JobMonitoringController
extends Object
The base url can be set via property batch.web.monitoring.base, its default is /batch/monitoring. There are four endpoints available:
| Constructor and Description |
|---|
JobMonitoringController(org.springframework.batch.core.launch.JobOperator jobOperator,
org.springframework.batch.core.explore.JobExplorer jobExplorer,
RunningExecutionTracker runningExecutionTracker) |
| Modifier and Type | Method and Description |
|---|---|
Set<Long> |
findAllRunningExecutions() |
org.springframework.batch.core.JobExecution |
findExecution(long executionId) |
Set<String> |
findRegisteredJobs() |
Set<Long> |
findRunningExecutionsForJobName(String jobName) |
String |
handleNotFound(Exception ex) |
public JobMonitoringController(org.springframework.batch.core.launch.JobOperator jobOperator,
org.springframework.batch.core.explore.JobExplorer jobExplorer,
RunningExecutionTracker runningExecutionTracker)
@RequestMapping(value="/jobs",
method=GET)
public Set<String> findRegisteredJobs()
throws IOException
IOException@RequestMapping(value="/jobs/runningexecutions",
method=GET)
public Set<Long> findAllRunningExecutions()
@RequestMapping(value="/jobs/runningexecutions/{jobName}",
method=GET)
public Set<Long> findRunningExecutionsForJobName(@PathVariable
String jobName)
@RequestMapping(value="/jobs/executions/{executionId}",
method=GET)
public org.springframework.batch.core.JobExecution findExecution(@PathVariable
long executionId)
throws org.springframework.batch.core.launch.NoSuchJobExecutionException
org.springframework.batch.core.launch.NoSuchJobExecutionExceptionCopyright © 2018 codecentric AG. All rights reserved.