#1358 disable and enable rawtable in cube controller
Project: http://git-wip-us.apache.org/repos/asf/kylin/repo Commit: http://git-wip-us.apache.org/repos/asf/kylin/commit/81ff9a48 Tree: http://git-wip-us.apache.org/repos/asf/kylin/tree/81ff9a48 Diff: http://git-wip-us.apache.org/repos/asf/kylin/diff/81ff9a48 Branch: refs/heads/master Commit: 81ff9a488cd94e54d605c74f66a8613010e967fa Parents: ba7bfd6 Author: Roger Shi <[email protected]> Authored: Fri Jun 23 20:38:55 2017 +0800 Committer: Hongbin Ma <[email protected]> Committed: Fri Jun 23 21:31:32 2017 +0800 ---------------------------------------------------------------------- .../rest/controller2/CubeControllerV2.java | 30 -------------------- 1 file changed, 30 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/kylin/blob/81ff9a48/server-base/src/main/java/org/apache/kylin/rest/controller2/CubeControllerV2.java ---------------------------------------------------------------------- diff --git a/server-base/src/main/java/org/apache/kylin/rest/controller2/CubeControllerV2.java b/server-base/src/main/java/org/apache/kylin/rest/controller2/CubeControllerV2.java index 63f2d8e..9ffc062 100644 --- a/server-base/src/main/java/org/apache/kylin/rest/controller2/CubeControllerV2.java +++ b/server-base/src/main/java/org/apache/kylin/rest/controller2/CubeControllerV2.java @@ -402,22 +402,6 @@ public class CubeControllerV2 extends BasicController { submitter); } - @RequestMapping(value = "/{cubeName}/disable", method = { RequestMethod.PUT }, produces = { - "application/vnd.apache.kylin-v2+json" }) - @ResponseBody - public EnvelopeResponse disableCubeV2(@PathVariable String cubeName) throws IOException { - Message msg = MsgPicker.getMsg(); - - CubeInstance cube = cubeService.getCubeManager().getCube(cubeName); - - if (cube == null) { - throw new BadRequestException(String.format(msg.getCUBE_NOT_FOUND(), cubeName)); - } - - return new EnvelopeResponse(ResponseCode.CODE_SUCCESS, cubeService.disableCube(cube), ""); - - } - @RequestMapping(value = "/{cubeName}/purge", method = { RequestMethod.PUT }, produces = { "application/vnd.apache.kylin-v2+json" }) @ResponseBody @@ -432,20 +416,6 @@ public class CubeControllerV2 extends BasicController { return new EnvelopeResponse(ResponseCode.CODE_SUCCESS, cubeService.purgeCube(cube), ""); } - @RequestMapping(value = "/{cubeName}/enable", method = { RequestMethod.PUT }, produces = { - "application/vnd.apache.kylin-v2+json" }) - @ResponseBody - public EnvelopeResponse enableCubeV2(@PathVariable String cubeName) throws IOException { - Message msg = MsgPicker.getMsg(); - - CubeInstance cube = cubeService.getCubeManager().getCube(cubeName); - if (cube == null) { - throw new BadRequestException(String.format(msg.getCUBE_NOT_FOUND(), cubeName)); - } - - return new EnvelopeResponse(ResponseCode.CODE_SUCCESS, cubeService.enableCube(cube), ""); - } - /** * get Hbase Info *
