未验证 提交 4117d001 编写于 作者: P ph3636 提交者: GitHub

[ISSUE 2800] optimize: the spelling of topicSynFlag

Co-authored-by: Nph3636 <tianxingguang@kanzhun.com>
上级 0f860e5c
...@@ -79,7 +79,7 @@ public class MQClientInstanceTest { ...@@ -79,7 +79,7 @@ public class MQClientInstanceTest {
queueData.setPerm(6); queueData.setPerm(6);
queueData.setReadQueueNums(3); queueData.setReadQueueNums(3);
queueData.setWriteQueueNums(4); queueData.setWriteQueueNums(4);
queueData.setTopicSynFlag(0); queueData.setTopicSysFlag(0);
queueDataList.add(queueData); queueDataList.add(queueData);
topicRouteData.setQueueDatas(queueDataList); topicRouteData.setQueueDatas(queueDataList);
......
...@@ -481,7 +481,7 @@ public class DefaultMQProducerTest { ...@@ -481,7 +481,7 @@ public class DefaultMQProducerTest {
queueData.setPerm(6); queueData.setPerm(6);
queueData.setReadQueueNums(3); queueData.setReadQueueNums(3);
queueData.setWriteQueueNums(4); queueData.setWriteQueueNums(4);
queueData.setTopicSynFlag(0); queueData.setTopicSysFlag(0);
queueDataList.add(queueData); queueDataList.add(queueData);
topicRouteData.setQueueDatas(queueDataList); topicRouteData.setQueueDatas(queueDataList);
return topicRouteData; return topicRouteData;
......
...@@ -273,7 +273,7 @@ public class DefaultMQConsumerWithTraceTest { ...@@ -273,7 +273,7 @@ public class DefaultMQConsumerWithTraceTest {
queueData.setPerm(6); queueData.setPerm(6);
queueData.setReadQueueNums(3); queueData.setReadQueueNums(3);
queueData.setWriteQueueNums(4); queueData.setWriteQueueNums(4);
queueData.setTopicSynFlag(0); queueData.setTopicSysFlag(0);
queueDataList.add(queueData); queueDataList.add(queueData);
topicRouteData.setQueueDatas(queueDataList); topicRouteData.setQueueDatas(queueDataList);
return topicRouteData; return topicRouteData;
...@@ -309,7 +309,7 @@ public class DefaultMQConsumerWithTraceTest { ...@@ -309,7 +309,7 @@ public class DefaultMQConsumerWithTraceTest {
queueData.setPerm(6); queueData.setPerm(6);
queueData.setReadQueueNums(1); queueData.setReadQueueNums(1);
queueData.setWriteQueueNums(1); queueData.setWriteQueueNums(1);
queueData.setTopicSynFlag(1); queueData.setTopicSysFlag(1);
queueDataList.add(queueData); queueDataList.add(queueData);
topicRouteData.setQueueDatas(queueDataList); topicRouteData.setQueueDatas(queueDataList);
return topicRouteData; return topicRouteData;
......
...@@ -168,7 +168,7 @@ public class DefaultMQProducerWithTraceTest { ...@@ -168,7 +168,7 @@ public class DefaultMQProducerWithTraceTest {
queueData.setPerm(6); queueData.setPerm(6);
queueData.setReadQueueNums(3); queueData.setReadQueueNums(3);
queueData.setWriteQueueNums(4); queueData.setWriteQueueNums(4);
queueData.setTopicSynFlag(0); queueData.setTopicSysFlag(0);
queueDataList.add(queueData); queueDataList.add(queueData);
topicRouteData.setQueueDatas(queueDataList); topicRouteData.setQueueDatas(queueDataList);
return topicRouteData; return topicRouteData;
...@@ -204,7 +204,7 @@ public class DefaultMQProducerWithTraceTest { ...@@ -204,7 +204,7 @@ public class DefaultMQProducerWithTraceTest {
queueData.setPerm(6); queueData.setPerm(6);
queueData.setReadQueueNums(1); queueData.setReadQueueNums(1);
queueData.setWriteQueueNums(1); queueData.setWriteQueueNums(1);
queueData.setTopicSynFlag(1); queueData.setTopicSysFlag(1);
queueDataList.add(queueData); queueDataList.add(queueData);
topicRouteData.setQueueDatas(queueDataList); topicRouteData.setQueueDatas(queueDataList);
return topicRouteData; return topicRouteData;
......
...@@ -25,7 +25,7 @@ public class QueueData implements Comparable<QueueData> { ...@@ -25,7 +25,7 @@ public class QueueData implements Comparable<QueueData> {
private int readQueueNums; private int readQueueNums;
private int writeQueueNums; private int writeQueueNums;
private int perm; private int perm;
private int topicSynFlag; private int topicSysFlag;
public int getReadQueueNums() { public int getReadQueueNums() {
return readQueueNums; return readQueueNums;
...@@ -51,12 +51,12 @@ public class QueueData implements Comparable<QueueData> { ...@@ -51,12 +51,12 @@ public class QueueData implements Comparable<QueueData> {
this.perm = perm; this.perm = perm;
} }
public int getTopicSynFlag() { public int getTopicSysFlag() {
return topicSynFlag; return topicSysFlag;
} }
public void setTopicSynFlag(int topicSynFlag) { public void setTopicSysFlag(int topicSysFlag) {
this.topicSynFlag = topicSynFlag; this.topicSysFlag = topicSysFlag;
} }
@Override @Override
...@@ -67,7 +67,7 @@ public class QueueData implements Comparable<QueueData> { ...@@ -67,7 +67,7 @@ public class QueueData implements Comparable<QueueData> {
result = prime * result + perm; result = prime * result + perm;
result = prime * result + readQueueNums; result = prime * result + readQueueNums;
result = prime * result + writeQueueNums; result = prime * result + writeQueueNums;
result = prime * result + topicSynFlag; result = prime * result + topicSysFlag;
return result; return result;
} }
...@@ -91,7 +91,7 @@ public class QueueData implements Comparable<QueueData> { ...@@ -91,7 +91,7 @@ public class QueueData implements Comparable<QueueData> {
return false; return false;
if (writeQueueNums != other.writeQueueNums) if (writeQueueNums != other.writeQueueNums)
return false; return false;
if (topicSynFlag != other.topicSynFlag) if (topicSysFlag != other.topicSysFlag)
return false; return false;
return true; return true;
} }
...@@ -99,7 +99,7 @@ public class QueueData implements Comparable<QueueData> { ...@@ -99,7 +99,7 @@ public class QueueData implements Comparable<QueueData> {
@Override @Override
public String toString() { public String toString() {
return "QueueData [brokerName=" + brokerName + ", readQueueNums=" + readQueueNums return "QueueData [brokerName=" + brokerName + ", readQueueNums=" + readQueueNums
+ ", writeQueueNums=" + writeQueueNums + ", perm=" + perm + ", topicSynFlag=" + topicSynFlag + ", writeQueueNums=" + writeQueueNums + ", perm=" + perm + ", topicSysFlag=" + topicSysFlag
+ "]"; + "]";
} }
......
...@@ -43,7 +43,7 @@ public class TopicRouteDataTest { ...@@ -43,7 +43,7 @@ public class TopicRouteDataTest {
queueData.setPerm(6); queueData.setPerm(6);
queueData.setReadQueueNums(8); queueData.setReadQueueNums(8);
queueData.setWriteQueueNums(8); queueData.setWriteQueueNums(8);
queueData.setTopicSynFlag(0); queueData.setTopicSysFlag(0);
List<QueueData> queueDataList = new ArrayList<QueueData>(); List<QueueData> queueDataList = new ArrayList<QueueData>();
queueDataList.add(queueData); queueDataList.add(queueData);
...@@ -78,7 +78,7 @@ public class TopicRouteDataTest { ...@@ -78,7 +78,7 @@ public class TopicRouteDataTest {
queueData.setPerm(6); queueData.setPerm(6);
queueData.setReadQueueNums(8); queueData.setReadQueueNums(8);
queueData.setWriteQueueNums(8); queueData.setWriteQueueNums(8);
queueData.setTopicSynFlag(0); queueData.setTopicSysFlag(0);
List<QueueData> queueDataList = new ArrayList<QueueData>(); List<QueueData> queueDataList = new ArrayList<QueueData>();
queueDataList.add(queueData); queueDataList.add(queueData);
......
...@@ -220,7 +220,7 @@ public class RouteInfoManager { ...@@ -220,7 +220,7 @@ public class RouteInfoManager {
queueData.setWriteQueueNums(topicConfig.getWriteQueueNums()); queueData.setWriteQueueNums(topicConfig.getWriteQueueNums());
queueData.setReadQueueNums(topicConfig.getReadQueueNums()); queueData.setReadQueueNums(topicConfig.getReadQueueNums());
queueData.setPerm(topicConfig.getPerm()); queueData.setPerm(topicConfig.getPerm());
queueData.setTopicSynFlag(topicConfig.getTopicSysFlag()); queueData.setTopicSysFlag(topicConfig.getTopicSysFlag());
List<QueueData> queueDataList = this.topicQueueTable.get(topicConfig.getTopicName()); List<QueueData> queueDataList = this.topicQueueTable.get(topicConfig.getTopicName());
if (null == queueDataList) { if (null == queueDataList) {
...@@ -684,7 +684,7 @@ public class RouteInfoManager { ...@@ -684,7 +684,7 @@ public class RouteInfoManager {
String topic = topicEntry.getKey(); String topic = topicEntry.getKey();
List<QueueData> queueDatas = topicEntry.getValue(); List<QueueData> queueDatas = topicEntry.getValue();
if (queueDatas != null && queueDatas.size() > 0 if (queueDatas != null && queueDatas.size() > 0
&& TopicSysFlag.hasUnitFlag(queueDatas.get(0).getTopicSynFlag())) { && TopicSysFlag.hasUnitFlag(queueDatas.get(0).getTopicSysFlag())) {
topicList.getTopicList().add(topic); topicList.getTopicList().add(topic);
} }
} }
...@@ -710,7 +710,7 @@ public class RouteInfoManager { ...@@ -710,7 +710,7 @@ public class RouteInfoManager {
String topic = topicEntry.getKey(); String topic = topicEntry.getKey();
List<QueueData> queueDatas = topicEntry.getValue(); List<QueueData> queueDatas = topicEntry.getValue();
if (queueDatas != null && queueDatas.size() > 0 if (queueDatas != null && queueDatas.size() > 0
&& TopicSysFlag.hasUnitSubFlag(queueDatas.get(0).getTopicSynFlag())) { && TopicSysFlag.hasUnitSubFlag(queueDatas.get(0).getTopicSysFlag())) {
topicList.getTopicList().add(topic); topicList.getTopicList().add(topic);
} }
} }
...@@ -736,8 +736,8 @@ public class RouteInfoManager { ...@@ -736,8 +736,8 @@ public class RouteInfoManager {
String topic = topicEntry.getKey(); String topic = topicEntry.getKey();
List<QueueData> queueDatas = topicEntry.getValue(); List<QueueData> queueDatas = topicEntry.getValue();
if (queueDatas != null && queueDatas.size() > 0 if (queueDatas != null && queueDatas.size() > 0
&& !TopicSysFlag.hasUnitFlag(queueDatas.get(0).getTopicSynFlag()) && !TopicSysFlag.hasUnitFlag(queueDatas.get(0).getTopicSysFlag())
&& TopicSysFlag.hasUnitSubFlag(queueDatas.get(0).getTopicSynFlag())) { && TopicSysFlag.hasUnitSubFlag(queueDatas.get(0).getTopicSysFlag())) {
topicList.getTopicList().add(topic); topicList.getTopicList().add(topic);
} }
} }
......
...@@ -94,7 +94,7 @@ public class UpdateTopicPermSubCommand implements SubCommand { ...@@ -94,7 +94,7 @@ public class UpdateTopicPermSubCommand implements SubCommand {
topicConfig.setTopicName(topic); topicConfig.setTopicName(topic);
topicConfig.setWriteQueueNums(queueData.getWriteQueueNums()); topicConfig.setWriteQueueNums(queueData.getWriteQueueNums());
topicConfig.setReadQueueNums(queueData.getReadQueueNums()); topicConfig.setReadQueueNums(queueData.getReadQueueNums());
topicConfig.setTopicSysFlag(queueData.getTopicSynFlag()); topicConfig.setTopicSysFlag(queueData.getTopicSysFlag());
//new perm //new perm
int perm; int perm;
if (commandLine.hasOption('p')) { if (commandLine.hasOption('p')) {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册