-
Notifications
You must be signed in to change notification settings - Fork 272
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
1 新加特性 增加topic描述,方便识别topic用途。 增加topic环境区分,测试topic建立在测试集群,线上topic建立在线上集群,。 延迟消息topic流量统计采用客户端上报数据(broker端无数据)。 topic创建页面精简,只展示必要选项,其他隐藏。 trace搜索增加发送&消费耗时。 修改快速入门代码示例。 broker部署时开启slaveReadEnable机制。 审核完毕发送邮件通知。 2 bug修复 生产者名称过长页面错乱bug修复。 server监控小数位数过长bug修复。 关联用户名字为空导致提示为null bug修复。 修复客户端统计最大耗时死循环bug。 修复客户端引入apache common lang包导致类找不到。
- Loading branch information
yongfeigao
committed
May 5, 2019
1 parent
826a991
commit d4f4aca
Showing
53 changed files
with
842 additions
and
142 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,6 +7,6 @@ | |
public class Version { | ||
|
||
public static String get() { | ||
return "1.6"; | ||
return "1.7"; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
alter table `audit_topic` add column `test_enabled` int(4) NOT NULL DEFAULT '0' COMMENT '0:非测试topic,1:测试topic'; | ||
|
||
alter table `topic` add column `info` varchar(360) DEFAULT NULL COMMENT 'topic描述'; | ||
|
||
alter table `topic` add column `delay_enabled` int(4) NOT NULL DEFAULT '0' COMMENT '0:不发送延迟消息,1:发送延迟消息。注:此字段不强制该topic的消息类型,仅为流量展示'; | ||
|
||
alter table `audit_topic` add column `delay_enabled` int(4) NOT NULL DEFAULT '0' COMMENT '0:不发送延迟消息,1:发送延迟消息。注:此字段不强制该topic的消息类型,仅为流量展示'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
48 changes: 48 additions & 0 deletions
48
mq-cloud/src/main/java/com/sohu/tv/mq/cloud/dao/DelayMessageDao.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
package com.sohu.tv.mq.cloud.dao; | ||
|
||
import java.util.List; | ||
import org.apache.ibatis.annotations.Param; | ||
import org.apache.ibatis.annotations.Select; | ||
import com.sohu.tv.mq.cloud.bo.TopicTraffic; | ||
/** | ||
* 延迟消息 | ||
* | ||
* @author zhehongyuan | ||
* @date 2019年4月23日 | ||
*/ | ||
public interface DelayMessageDao { | ||
|
||
/** | ||
* 延迟消息的TopicTraffic记录 | ||
*/ | ||
@Select("select create_time ,sum(count) as count from producer_total_stat where" | ||
+ " producer in(select distinct producer from user_producer where tid=#{tid}) " | ||
+ "and create_date = #{createDate} group by create_time") | ||
public List<TopicTraffic> selectTopicTraffic(@Param("tid")long tid, @Param("createDate")int createDate); | ||
|
||
|
||
/** | ||
* 获取topic流量 | ||
* | ||
* @param tid | ||
* @param createDate | ||
* @return | ||
*/ | ||
@Select("select #{tid} as tid, create_time, sum(count) as count from producer_total_stat where" | ||
+ " producer in(select distinct producer from user_producer where tid=#{tid}) " | ||
+ "and create_date = #{createDate} and create_time = #{createTime} group by create_time") | ||
public TopicTraffic selectByIdListDateTime(@Param("tid") long tid, | ||
@Param("createDate") int createDate, @Param("createTime") String createTime); | ||
|
||
/** | ||
* 获取topic日流量 | ||
* @param tid | ||
* @param createDate | ||
* @return | ||
*/ | ||
@Select("select #{tid} as tid, sum(count) as count from producer_total_stat where" | ||
+ " producer in(select distinct producer from user_producer where tid=#{tid}) " | ||
+ "and create_date = #{createDate}") | ||
public TopicTraffic selectTotalTraffic(@Param("tid") long tid, @Param("createDate") int createDate); | ||
|
||
} |
Oops, something went wrong.