-
Notifications
You must be signed in to change notification settings - Fork 0
/
MdcController.java
28 lines (20 loc) · 1.17 KB
/
MdcController.java
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
package com.ups.ops.oms.batch.mdc.controller;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.batch.core.JobParametersInvalidException;
import org.springframework.batch.core.repository.JobExecutionAlreadyRunningException;
import org.springframework.batch.core.repository.JobInstanceAlreadyCompleteException;
import org.springframework.batch.core.repository.JobRestartException;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import com.ups.ops.oms.batch.mdc.task.OmsMDCBatchJobScheduler;
@RestController
public class MdcController {
private final Logger log = LoggerFactory.getLogger(this.getClass());
@RequestMapping(value = "/", produces = "text/plain")
public String homePage() throws JobExecutionAlreadyRunningException, JobRestartException, JobInstanceAlreadyCompleteException, JobParametersInvalidException, InterruptedException {
log.debug("Request received in default endpoint in controller");
return "Welcome to OMS MDC Service. MDC Service is a batch Service";
}
}