类 HealthController


  • @RestController("namingHealthController")
    @RequestMapping("/v1/ns/health")
    public class HealthController
    extends java.lang.Object
    Health status related operation controller.
    从以下版本开始:
    0.8.0
    作者:
    nkorange, nanamikon
    • 方法概要

      所有方法 实例方法 具体方法 
      修饰符和类型 方法 说明
      org.springframework.http.ResponseEntity checkers()
      Get all health checkers.
      private HealthOperator getHealthOperator()  
      org.springframework.http.ResponseEntity server()
      Just a health check.
      org.springframework.http.ResponseEntity update​(javax.servlet.http.HttpServletRequest request)
      Update health check for instance.
      • 从类继承的方法 java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • 构造器详细资料

      • HealthController

        public HealthController()
    • 方法详细资料

      • 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.NacosException
        Update 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