类 ConfigOpsController
- java.lang.Object
-
- com.alibaba.nacos.config.server.controller.ConfigOpsController
-
@RestController @RequestMapping("/v1/cs/ops") public class ConfigOpsController extends java.lang.ObjectManage controllers.- 作者:
- Nacos
-
-
字段概要
字段 修饰符和类型 字段 说明 private DumpServicedumpServiceprivate static org.slf4j.LoggerLOGGER
-
构造器概要
构造器 构造器 说明 ConfigOpsController(DumpService dumpService)
-
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 com.alibaba.nacos.common.model.RestResult<java.lang.Object>derbyOps(java.lang.String sql)// TODO In a future release, the front page should appear operable The interface to the Derby operations query can only run select statements and is a direct query to the native Derby database without any additional logic.org.springframework.web.context.request.async.DeferredResult<com.alibaba.nacos.common.model.RestResult<java.lang.String>>importDerby(org.springframework.web.multipart.MultipartFile multipartFile)// TODO the front page should appear operable The external data source is imported into derby.java.lang.StringsetLogLevel(java.lang.String logName, java.lang.String logLevel)java.lang.StringupdateLocalCacheFromStore()Manually trigger dump of a local configuration file.
-
-
-
字段详细资料
-
LOGGER
private static final org.slf4j.Logger LOGGER
-
dumpService
private final DumpService dumpService
-
-
构造器详细资料
-
ConfigOpsController
public ConfigOpsController(DumpService dumpService)
-
-
方法详细资料
-
updateLocalCacheFromStore
@PostMapping("/localCache") public java.lang.String updateLocalCacheFromStore()Manually trigger dump of a local configuration file.
-
setLogLevel
@PutMapping("/log") public java.lang.String setLogLevel(@RequestParam java.lang.String logName, @RequestParam java.lang.String logLevel)
-
derbyOps
@GetMapping("/derby") public com.alibaba.nacos.common.model.RestResult<java.lang.Object> derbyOps(@RequestParam("sql") java.lang.String sql)// TODO In a future release, the front page should appear operable The interface to the Derby operations query can only run select statements and is a direct query to the native Derby database without any additional logic.- 参数:
sql- The query- 返回:
RestResult
-
importDerby
@PostMapping("/data/removal") public org.springframework.web.context.request.async.DeferredResult<com.alibaba.nacos.common.model.RestResult<java.lang.String>> importDerby(@RequestParam("file") org.springframework.web.multipart.MultipartFile multipartFile)// TODO the front page should appear operable The external data source is imported into derby.mysqldump --defaults-file="XXX" --host=0.0.0.0 --protocol=tcp --user=XXX --extended-insert=FALSE \ --complete-insert=TRUE \ --skip-triggers --no-create-info --skip-column-statistics "{SCHEMA}" "{TABLE_NAME}"
- 参数:
multipartFile-MultipartFile- 返回:
DeferredResult
-
-