-
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.
支持rocketmq 4.7.1 broker数据统计支持addr(一台机器可以部署多个broker)。 支持broker存储数据远程迁移,校验。 客户端启动抓取配置报错日志完善 增加生产消费micrometer统计 支持broker主从同步数据监控预警 服务器链接支持链接池 消费失败的消息,邮件提醒支持一键跳过 审核列表支持分页展示 topic名等支持点击复制 bootstrap升级为3.4.1 增加纯go客户端接入wiki 增加广播模式重置偏移量wiki 2 bug修复 fix统计获取生产者组为空的bug fix收集任务异常终止的bug。 fix广播消费者重复监控的bug fix本地更新broker的bug fix趋势图时间展示不全的bug fix消费者创建失败导致数据不完全的bug fix broker监控未按时执行的bug fix趋势图单位显示bug fix消息过长撑爆td的bug
- Loading branch information
Showing
184 changed files
with
12,950 additions
and
7,741 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
31 changes: 31 additions & 0 deletions
31
mq-client-common-open/src/main/java/com/sohu/tv/mq/common/ConsumeException.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,31 @@ | ||
package com.sohu.tv.mq.common; | ||
|
||
/** | ||
* 消费异常 | ||
* | ||
* @author yongfeigao | ||
* @date 2020年12月21日 | ||
*/ | ||
public class ConsumeException extends Exception { | ||
private static final long serialVersionUID = 3662764764579878687L; | ||
|
||
public ConsumeException() { | ||
super(); | ||
} | ||
|
||
public ConsumeException(String message, Throwable cause, boolean enableSuppression, boolean writableStackTrace) { | ||
super(message, cause, enableSuppression, writableStackTrace); | ||
} | ||
|
||
public ConsumeException(String message, Throwable cause) { | ||
super(message, cause); | ||
} | ||
|
||
public ConsumeException(String message) { | ||
super(message); | ||
} | ||
|
||
public ConsumeException(Throwable cause) { | ||
super(cause); | ||
} | ||
} |
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
86 changes: 86 additions & 0 deletions
86
mq-client-common-open/src/main/java/com/sohu/tv/mq/metric/MQMetrics.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,86 @@ | ||
package com.sohu.tv.mq.metric; | ||
|
||
import java.io.Serializable; | ||
/** | ||
* mq指标 | ||
* | ||
* @author yongfeigao | ||
* @date 2020年12月22日 | ||
*/ | ||
public class MQMetrics implements Serializable { | ||
private static final long serialVersionUID = 738296259571004441L; | ||
// 最大耗时 | ||
private int maxTime; | ||
// 总耗时 | ||
private long totalTime; | ||
// 调用次数 | ||
private int totalCount; | ||
// 异常次数 | ||
private int exceptionCount; | ||
// 生产或消费组 | ||
private String group; | ||
|
||
public int getMaxTime() { | ||
return maxTime; | ||
} | ||
|
||
public MQMetrics setMaxTime(int maxTime) { | ||
if (maxTime > this.maxTime) { | ||
this.maxTime = maxTime; | ||
} | ||
return this; | ||
} | ||
|
||
public long getTotalTime() { | ||
return totalTime; | ||
} | ||
|
||
public void setTotalTime(long totalTime) { | ||
this.totalTime = totalTime; | ||
} | ||
|
||
public MQMetrics addTotalTime(long totalTime) { | ||
this.totalTime += totalTime; | ||
return this; | ||
} | ||
|
||
public int getTotalCount() { | ||
return totalCount; | ||
} | ||
|
||
public void setTotalCount(int totalCount) { | ||
this.totalCount = totalCount; | ||
} | ||
|
||
public MQMetrics addTotalCount(int totalCount) { | ||
this.totalCount += totalCount; | ||
return this; | ||
} | ||
|
||
public int getExceptionCount() { | ||
return exceptionCount; | ||
} | ||
|
||
public void setExceptionCount(int exceptionCount) { | ||
this.exceptionCount = exceptionCount; | ||
} | ||
|
||
public MQMetrics addExceptionCount(int exceptionCount) { | ||
this.exceptionCount += exceptionCount; | ||
return this; | ||
} | ||
|
||
public String getGroup() { | ||
return group; | ||
} | ||
|
||
public void setGroup(String group) { | ||
this.group = group; | ||
} | ||
|
||
@Override | ||
public String toString() { | ||
return "MQMetrics [maxTime=" + maxTime + ", totalTime=" + totalTime + ", totalCount=" + totalCount | ||
+ ", exceptionCount=" + exceptionCount + ", group=" + group + "]"; | ||
} | ||
} |
Oops, something went wrong.