GET /zk/get/path+
GET /zk/ls/{path}
From 2e9aade054413e6e371fb1cb75044c6d83efd078 Mon Sep 17 00:00:00 2001 From: tinawenqiao <315524513@qq.com> Date: Thu, 22 Nov 2018 17:45:31 +0800 Subject: [PATCH 01/24] Modify topic and conf related code to support 1.1 --- docs/index.html | 116 +------- docs/index.pdf | Bin 1041895 -> 1023450 bytes docs/paths.adoc | 43 +-- kafka-zk-rest-springboot.iml | 158 ---------- pom.xml | 5 +- .../bigdata/componet/OffsetStorage.java | 2 +- .../gnuhpc/bigdata/config/KafkaConfig.java | 24 +- .../bigdata/controller/DebugController.java | 2 +- .../bigdata/controller/KafkaController.java | 76 ++--- .../model/ConsumerGroupDescFactory.java | 6 +- .../model/CustomTopicPartitionInfo.java | 47 +++ .../org/gnuhpc/bigdata/model/TopicMeta.java | 5 +- .../bigdata/model/TopicPartitionInfo.java | 45 --- .../bigdata/service/KafkaAdminService.java | 272 ++++++++++-------- .../bigdata/service/KafkaConsumerService.java | 6 +- .../org/gnuhpc/bigdata/utils/KafkaUtils.java | 14 +- .../gnuhpc/bigdata/utils/ZookeeperUtils.java | 7 + src/main/resources/application-tina.yml | 7 +- .../KafkaRestSpringbootApplicationTests.java | 6 +- 19 files changed, 286 insertions(+), 555 deletions(-) delete mode 100644 kafka-zk-rest-springboot.iml create mode 100644 src/main/java/org/gnuhpc/bigdata/model/CustomTopicPartitionInfo.java delete mode 100644 src/main/java/org/gnuhpc/bigdata/model/TopicPartitionInfo.java diff --git a/docs/index.html b/docs/index.html index d0a57a4..b1cb3b3 100644 --- a/docs/index.html +++ b/docs/index.html @@ -491,9 +491,8 @@
GET /zk/get/path+
GET /zk/ls/{path}
Query
Path
path
required
path
200
OK
< string, string > map
< string > array
401
GET /zk/ls/path+
GET /zk/stat
Type | -Name | -Description | -Schema | -
---|---|---|---|
Query |
-path |
-path |
-string |
-
200 |
OK |
-< string > array |
+< string, ZkServerStat > map |
||||||||||||
401 |
@@ -4486,73 +4457,6 @@
HTTP Code | -Description | -Schema | -
---|---|---|
200 |
-OK |
-< string, ZkServerStat > map |
-
401 |
-Unauthorized |
-No Content |
-
403 |
-Forbidden |
-No Content |
-
404 |
-Not Found |
-No Content |
-