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