类 ServerLoaderController
java.lang.Object
com.alibaba.nacos.core.controller.ServerLoaderController
@RestController
@RequestMapping("/v2/core/loader")
public class ServerLoaderController
extends Object
controller to control server loader.
- 版本:
- $Id: ServerLoaderController.java, v 0.1 2020年07月22日 4:28 PM liuzunfei Exp $
- 作者:
- liuzunfei
-
构造器概要
构造器 -
方法概要
修饰符和类型方法说明org.springframework.http.ResponseEntityGet current clients.org.springframework.http.ResponseEntityGet current clients.org.springframework.http.ResponseEntityreloadCount(Integer count, String redirectAddress)Get server state of current server.org.springframework.http.ResponseEntityreloadSingle(String connectionId, String redirectAddress)Get server state of current server.org.springframework.http.ResponseEntitysmartReload(javax.servlet.http.HttpServletRequest request, String loaderFactorStr, String force)Get server state of current server.
-
构造器详细资料
-
ServerLoaderController
public ServerLoaderController()
-
-
方法详细资料
-
currentClients
@GetMapping("/current") public org.springframework.http.ResponseEntity currentClients()Get current clients.- 返回:
- state json.
-
reloadCount
@GetMapping("/reloadCurrent") public org.springframework.http.ResponseEntity reloadCount(@RequestParam Integer count, @RequestParam(value="redirectAddress",required=false) String redirectAddress)Get server state of current server.- 返回:
- state json.
-
smartReload
@GetMapping("/smartReloadCluster") public org.springframework.http.ResponseEntity smartReload(javax.servlet.http.HttpServletRequest request, @RequestParam(value="loaderFactor",required=false) String loaderFactorStr, @RequestParam(value="force",required=false) String force)Get server state of current server.- 返回:
- state json.
-
reloadSingle
@GetMapping("/reloadClient") public org.springframework.http.ResponseEntity reloadSingle(@RequestParam String connectionId, @RequestParam(value="redirectAddress",required=false) String redirectAddress)Get server state of current server.- 返回:
- state json.
-
loaderMetrics
@GetMapping("/cluster") public org.springframework.http.ResponseEntity loaderMetrics()Get current clients.- 返回:
- state json.
-