mirror of
https://github.com/didi/KnowStreaming.git
synced 2025-12-24 11:52:08 +08:00
Merge pull request #261 from didi/dev
开放接口集群ID开始调整, op对应的是物理集群ID, normal对应的是逻辑集群ID, 第一步, util接口调整
This commit is contained in:
@@ -609,10 +609,10 @@ Lag:表示该消费客户端是否有堆积;等于 partition offset-consume
|
|||||||
|
|
||||||
集群类型:选择创建的集群为“独享”还是“独立”。
|
集群类型:选择创建的集群为“独享”还是“独立”。
|
||||||
|
|
||||||
* 独享集群意味着,您独自拥有一个
|
* 独享集群意味着, 您拥有一个集群中,部分broker的使用权限。
|
||||||
集群;
|
|
||||||
|
|
||||||
* 独立集群意味着,您拥有一个集群中,部分broker的使用权限。
|
* 独立集群意味着,您独自拥有一个
|
||||||
|
物理集群;
|
||||||
|
|
||||||
* <font color = red>共享集群意味着,大家共用一个集群及其中broker。</font>
|
* <font color = red>共享集群意味着,大家共用一个集群及其中broker。</font>
|
||||||
|
|
||||||
|
|||||||
@@ -20,6 +20,12 @@ public class ApiPrefix {
|
|||||||
// open
|
// open
|
||||||
public static final String API_V1_THIRD_PART_PREFIX = API_V1_PREFIX + "third-part/";
|
public static final String API_V1_THIRD_PART_PREFIX = API_V1_PREFIX + "third-part/";
|
||||||
|
|
||||||
|
// 开放给OP的接口, 后续对 应的接口的集群都需要是物理集群
|
||||||
|
public static final String API_V1_THIRD_PART_OP_PREFIX = API_V1_THIRD_PART_PREFIX + "op/";
|
||||||
|
|
||||||
|
// 开放给Normal的接口, 后续对应的接口的集群,都需要是逻辑集群
|
||||||
|
public static final String API_V1_THIRD_PART_NORMAL_PREFIX = API_V1_THIRD_PART_PREFIX + "normal/";
|
||||||
|
|
||||||
// gateway
|
// gateway
|
||||||
public static final String GATEWAY_API_V1_PREFIX = "/gateway" + API_V1_PREFIX;
|
public static final String GATEWAY_API_V1_PREFIX = "/gateway" + API_V1_PREFIX;
|
||||||
}
|
}
|
||||||
@@ -33,7 +33,7 @@ public class BrokerOverviewVO {
|
|||||||
@ApiModelProperty(value = "分区数")
|
@ApiModelProperty(value = "分区数")
|
||||||
private Integer partitionCount;
|
private Integer partitionCount;
|
||||||
|
|
||||||
@ApiModelProperty(value = "已同步副本数")
|
@ApiModelProperty(value = "失效副本分区的个数")
|
||||||
private Integer underReplicatedPartitions;
|
private Integer underReplicatedPartitions;
|
||||||
|
|
||||||
@ApiModelProperty(value = "未同步")
|
@ApiModelProperty(value = "未同步")
|
||||||
|
|||||||
@@ -72,6 +72,8 @@ public class LoginServiceImpl implements LoginService {
|
|||||||
|
|
||||||
if (classRequestMappingValue.equals(ApiPrefix.API_V1_SSO_PREFIX)
|
if (classRequestMappingValue.equals(ApiPrefix.API_V1_SSO_PREFIX)
|
||||||
|| classRequestMappingValue.equals(ApiPrefix.API_V1_THIRD_PART_PREFIX)
|
|| classRequestMappingValue.equals(ApiPrefix.API_V1_THIRD_PART_PREFIX)
|
||||||
|
|| classRequestMappingValue.equals(ApiPrefix.API_V1_THIRD_PART_OP_PREFIX)
|
||||||
|
|| classRequestMappingValue.equals(ApiPrefix.API_V1_THIRD_PART_NORMAL_PREFIX)
|
||||||
|| classRequestMappingValue.equals(ApiPrefix.GATEWAY_API_V1_PREFIX)) {
|
|| classRequestMappingValue.equals(ApiPrefix.GATEWAY_API_V1_PREFIX)) {
|
||||||
// 白名单接口直接true
|
// 白名单接口直接true
|
||||||
return true;
|
return true;
|
||||||
|
|||||||
@@ -32,8 +32,8 @@ import java.util.stream.Collectors;
|
|||||||
*/
|
*/
|
||||||
@Api(tags = "开放接口-Broker相关接口(REST)")
|
@Api(tags = "开放接口-Broker相关接口(REST)")
|
||||||
@RestController
|
@RestController
|
||||||
@RequestMapping(ApiPrefix.API_V1_THIRD_PART_PREFIX)
|
@RequestMapping(ApiPrefix.API_V1_THIRD_PART_OP_PREFIX)
|
||||||
public class ThirdPartBrokerController {
|
public class ThirdPartOpBrokerController {
|
||||||
@Autowired
|
@Autowired
|
||||||
private BrokerService brokerService;
|
private BrokerService brokerService;
|
||||||
|
|
||||||
|
|||||||
@@ -21,8 +21,8 @@ import org.springframework.web.bind.annotation.*;
|
|||||||
*/
|
*/
|
||||||
@Api(tags = "开放接口-OP相关接口(REST)")
|
@Api(tags = "开放接口-OP相关接口(REST)")
|
||||||
@RestController
|
@RestController
|
||||||
@RequestMapping(ApiPrefix.API_V1_THIRD_PART_PREFIX)
|
@RequestMapping(ApiPrefix.API_V1_THIRD_PART_OP_PREFIX)
|
||||||
public class ThirdPartOpController {
|
public class ThirdPartOpUtilController {
|
||||||
|
|
||||||
@Autowired
|
@Autowired
|
||||||
private AdminService adminService;
|
private AdminService adminService;
|
||||||
@@ -11,9 +11,9 @@ spring:
|
|||||||
name: kafkamanager
|
name: kafkamanager
|
||||||
datasource:
|
datasource:
|
||||||
kafka-manager:
|
kafka-manager:
|
||||||
jdbc-url: jdbc:mysql://127.0.0.1:3306/logi_kafka_manager?characterEncoding=UTF-8&useSSL=false&serverTimezone=GMT%2B8
|
jdbc-url: jdbc:mysql://localhost:3306/logi_kafka_manager?characterEncoding=UTF-8&useSSL=false&serverTimezone=GMT%2B8
|
||||||
username: admin
|
username: root
|
||||||
password: admin
|
password: 123456
|
||||||
driver-class-name: com.mysql.cj.jdbc.Driver
|
driver-class-name: com.mysql.cj.jdbc.Driver
|
||||||
main:
|
main:
|
||||||
allow-bean-definition-overriding: true
|
allow-bean-definition-overriding: true
|
||||||
|
|||||||
Reference in New Issue
Block a user