类 HealthController
- java.lang.Object
-
- com.alibaba.nacos.naming.controllers.HealthController
-
@RestController("namingHealthController") @RequestMapping("/v1/ns/health") public class HealthController extends java.lang.ObjectHealth status related operation controller.- 从以下版本开始:
- 0.8.0
- 作者:
- nkorange, nanamikon
-
-
字段概要
字段 修饰符和类型 字段 说明 private HealthOperatorV2ImplhealthOperatorV2
-
构造器概要
构造器 构造器 说明 HealthController()
-
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 org.springframework.http.ResponseEntitycheckers()Get all health checkers.private HealthOperatorgetHealthOperator()org.springframework.http.ResponseEntityserver()Just a health check.org.springframework.http.ResponseEntityupdate(javax.servlet.http.HttpServletRequest request)Update health check for instance.
-
-
-
字段详细资料
-
healthOperatorV2
@Autowired private HealthOperatorV2Impl healthOperatorV2
-
-
方法详细资料
-
server
@RequestMapping("/server") public org.springframework.http.ResponseEntity server()Just a health check.- 返回:
- hello message
-
update
@PutMapping({"","/instance"}) public org.springframework.http.ResponseEntity update(javax.servlet.http.HttpServletRequest request) throws com.alibaba.nacos.api.exception.NacosExceptionUpdate health check for instance.- 参数:
request- http request- 返回:
- 'ok' if success
- 抛出:
com.alibaba.nacos.api.exception.NacosException
-
checkers
@GetMapping("/checkers") public org.springframework.http.ResponseEntity checkers()Get all health checkers.- 返回:
- health checkers map
-
getHealthOperator
private HealthOperator getHealthOperator()
-
-