类 ConfigOpsController


  • @RestController
    @RequestMapping("/v1/cs/ops")
    public class ConfigOpsController
    extends java.lang.Object
    Manage controllers.
    作者:
    Nacos
    • 方法概要

      所有方法 实例方法 具体方法 
      修饰符和类型 方法 说明
      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.String setLogLevel​(java.lang.String logName, java.lang.String logLevel)  
      java.lang.String updateLocalCacheFromStore()
      Manually trigger dump of a local configuration file.
      • 从类继承的方法 java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • 字段详细资料

      • LOGGER

        private static final org.slf4j.Logger LOGGER
    • 构造器详细资料

    • 方法详细资料

      • 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