未验证 提交 135981dd 编写于 作者: E EricZeng 提交者: GitHub

Merge pull request #261 from didi/dev

开放接口集群ID开始调整, op对应的是物理集群ID, normal对应的是逻辑集群ID, 第一步, util接口调整
...@@ -609,10 +609,10 @@ Lag:表示该消费客户端是否有堆积;等于 partition offset-consume ...@@ -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 { ...@@ -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;
} }
\ No newline at end of file
...@@ -33,7 +33,7 @@ public class BrokerOverviewVO { ...@@ -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 { ...@@ -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; ...@@ -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.*; ...@@ -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: ...@@ -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
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册