-
Notifications
You must be signed in to change notification settings - Fork 674
/
ApiController.java
35 lines (29 loc) · 985 Bytes
/
ApiController.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
29
30
31
32
33
34
35
package com.flink.streaming.web.controller.api;
import com.flink.streaming.web.ao.JobServerAO;
import com.flink.streaming.web.common.RestResult;
import com.flink.streaming.web.controller.web.BaseController;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
/**
* @author zhuhuipei
* @Description:
* @date 2020-07-07
* @time 22:00
*/
@RestController
@Slf4j
public class ApiController extends BaseController {
@Autowired
private JobServerAO jobYarnServerAO;
@RequestMapping("/ok")
public RestResult ok() {
return RestResult.success();
}
@RequestMapping("/alarmCallback")
public RestResult alarmCallback(String appId, String jobName, String deployMode) {
log.info("测试回调 appId={} jobName={} deployMode={}", appId, jobName, deployMode);
return RestResult.success();
}
}