![](https://img-blog.csdnimg.cn/20201014180756925.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
rocketmq
文章平均质量分 95
游语
把生活过成段子,把代码写成诗
展开
-
RocketMQ ACL鉴权设计与使用demo
摘要rocketMq开启访问权限控制的目的是为了提高系统的安全性和保密性。要保证系统的安全性和保密性,那么就需要从身份认证和访问控制两个方向出发。身份认证是对系统的用户进行有效性、真实性验证;访问控制是在身份认证的基础上,根据不同用户的操作请求加以限制。身份认证关心的是“你是谁,你是否拥有你所声明的身份”这个问题;而访问控制则关心“你能做什么,不能做什么”的问题。rocketMq在4.4.0版本时引入了ACL机制,用于访问权限控制。RocketMQ ACL使用指南一 什么是ACL?ACL是acces原创 2021-04-20 09:01:17 · 2807 阅读 · 0 评论 -
rocketmq 之namesrv(四十)mqclient admin请求处理查询消费队列
查询消费队列 AdminBrokerProcessor#queryConsumeQueueAdminBrokerProcessor#processRequest#this.queryConsumeQueue(ctx, request)private RemotingCommand queryConsumeQueue(ChannelHandlerContext ctx, Remo...原创 2020-03-31 14:30:27 · 258 阅读 · 0 评论 -
rocketmq 之namesrv(三十九)mqclient admin请求处理拉取broker消费者组状态
拉取broker消费者组状态 AdminBrokerProcessor#fetchAllConsumeStatsInBrokerAdminBrokerProcessor#processRequest#this.fetchAllConsumeStatsInBroker(ctx, request)private RemotingCommand fetchAllConsumeStatsInBroke...原创 2020-03-31 14:30:08 · 474 阅读 · 0 评论 -
rocketmq 之namesrv(三十八)mqclient admin请求处理查看broker的状态数据
查看broker的状态数据 AdminBrokerProcessor#ViewBrokerStatsData这里ViewBrokerStatsData方法命名不符合规范,没看出来为啥必须要用这个方法名AdminBrokerProcessor#processRequest#this.ViewBrokerStatsData(ctx, request) private RemotingComman...原创 2020-03-31 14:29:51 · 1060 阅读 · 1 评论 -
rocketmq 之namesrv(三十七)mqclient admin请求处理clone组的offset
clone组的offset AdminBrokerProcessor#cloneGroupOffsetAdminBrokerProcessor#processRequest#this.cloneGroupOffset(ctx, request) private RemotingCommand cloneGroupOffset(ChannelHandlerContext ctx, ...原创 2020-03-31 14:29:34 · 181 阅读 · 0 评论 -
rocketmq 之namesrv(三十六)mqclient admin请求处理直接消费消息
直接消费消息AdminBrokerProcessor#consumeMessageDirectlyAdminBrokerProcessor#processRequest#this.consumeMessageDirectly(ctx, request) private RemotingCommand consumeMessageDirectly(ChannelHandlerContext ct...原创 2020-03-31 14:29:22 · 292 阅读 · 0 评论 -
rocketmq 之namesrv(三十五)mqclient admin请求处理查询修改后的offset
查询修改后的offset AdminBrokerProcessor#queryCorrectionOffsetAdminBrokerProcessor#processRequest#this.queryCorrectionOffset(ctx, request) private RemotingCommand queryCorrectionOffset(ChannelHandlerContex...原创 2020-03-27 15:37:44 · 255 阅读 · 0 评论 -
rocketmq 之namesrv(三十四)mqclient admin请求处理获取消费者运行信息
获取消费者运行信息 AdminBrokerProcessor#getConsumerRunningInfoAdminBrokerProcessor#processRequest#this.getConsumerRunningInfo(ctx, request) RemotingCommand request) throws RemotingCommandException { ...原创 2020-03-27 15:12:51 · 297 阅读 · 0 评论 -
rocketmq 之namesrv(三十三)mqclient admin请求处理清除不再使用的topic
清除不再使用的topic AdminBrokerProcessor#cleanUnusedTopicAdminBrokerProcessor#processRequest#this.cleanUnusedTopic(ctx, request)public RemotingCommand cleanUnusedTopic() { log.warn("invoke cleanUnu...原创 2020-03-27 15:11:26 · 328 阅读 · 0 评论 -
rocketmq 之namesrv(三十二)mqclient admin请求处理清除过期的消费队列
清除过期的消费队列AdminBrokerProcessor#cleanExpiredConsumeQueueAdminBrokerProcessor#processRequest#this.cleanExpiredConsumeQueue(ctx, request)public RemotingCommand cleanExpiredConsumeQueue() { log.w...原创 2020-03-26 11:42:27 · 328 阅读 · 0 评论 -
rocketmq 之namesrv(三十一)mqclient admin请求处理从broker中获取系统topic列表
从broker中获取系统topic列表AdminBrokerProcessor#getSystemTopicListFromBrokerAdminBrokerProcessor#processRequest#this.getSystemTopicListFromBroker(ctx, request)private RemotingCommand getSystemTopicListFromB...原创 2020-03-26 10:40:54 · 483 阅读 · 0 评论 -
rocketmq 之namesrv(三十)mqclient admin请求处理查询消费者时间跨度
查询消费者时间跨度AdminBrokerProcessor#queryConsumeTimeSpanAdminBrokerProcessor#processRequest#this.queryConsumeTimeSpan(ctx, request)private RemotingCommand queryConsumeTimeSpan(ChannelHandlerContext ctx, ...原创 2020-03-26 10:21:55 · 185 阅读 · 0 评论 -
rocketmq 之namesrv(二十九)mqclient admin请求处理注册过滤服务器
注册过滤服务器AdminBrokerProcessor#registerFilterServerAdminBrokerProcessor#processRequest#this.registerFilterServer(ctx, request)private RemotingCommand registerFilterServer(ChannelHandlerContext ctx, ...原创 2020-03-23 14:53:35 · 127 阅读 · 0 评论 -
rocketmq 之namesrv(二十八)mqclient admin请求处理查询topic被哪些消费者消费
查询topic被哪些消费者消费 AdminBrokerProcessor#getConsumerStatusAdminBrokerProcessor#processRequest#this.queryTopicConsumeByWho(ctx, request)private RemotingCommand queryTopicConsumeByWho(ChannelHandlerContex...原创 2020-03-23 14:38:58 · 749 阅读 · 2 评论 -
rocketmq 之namesrv(二十七)mqclient admin请求处理调用broker获取消费者状态
获取所有消费者的offsetAdminBrokerProcessor#getConsumerStatusAdminBrokerProcessor#processRequest#this.getConsumerStatus(ctx, request)public RemotingCommand getConsumerStatus(ChannelHandlerContext ctx, ...原创 2020-03-23 11:53:54 · 312 阅读 · 0 评论 -
rocketmq 之namesrv(二十六)mqclient admin请求处理调用broker重置offset
获取所有消费者的offsetAdminBrokerProcessor#resetOffsetAdminBrokerProcessor#processRequest#this.resetOffset(ctx, request)public RemotingCommand resetOffset(ChannelHandlerContext ctx, RemotingCommand ...原创 2020-03-23 10:57:12 · 361 阅读 · 0 评论 -
rocketmq 之namesrv(二十五)mqclient admin请求处理获取所有delay的offset
获取所有消费者的offsetAdminBrokerProcessor#getAllDelayOffsetAdminBrokerProcessor#processRequest#this.getAllDelayOffset(ctx, request)private RemotingCommand getAllDelayOffset(ChannelHandlerContext ctx, Remot...原创 2020-03-23 10:43:19 · 193 阅读 · 0 评论 -
rocketmq 之namesrv(二十四)mqclient admin请求处理获取所有消费者的offset
获取所有消费者的offsetAdminBrokerProcessor#getAllConsumerOffsetAdminBrokerProcessor#processRequest#this.getAllConsumerOffset(ctx, request)private RemotingCommand getAllConsumerOffset(ChannelHandlerContext c...原创 2020-03-06 09:11:05 · 206 阅读 · 0 评论 -
rocketmq 之namesrv(二十三)mqclient admin请求处理获取消费者的状态
获取消费者的状态AdminBrokerProcessor#getConsumeStatsAdminBrokerProcessor#processRequest#this.getConsumeStats(ctx, request)private RemotingCommand getConsumeStats(ChannelHandlerContext ctx, RemotingC...原创 2020-03-05 17:50:41 · 332 阅读 · 0 评论 -
rocketmq 之namesrv(二十二)mqclient admin请求处理获取生产者连接列表
获取生产者连接列表AdminBrokerProcessor#getProducerConnectionListAdminBrokerProcessor#processRequest#this.getProducerConnectionList(ctx, request)private RemotingCommand getProducerConnectionList(ChannelHandle...原创 2020-03-05 17:50:24 · 253 阅读 · 0 评论 -
rocketmq 之namesrv(二十一)mqclient admin请求处理获取消费者连接列表
获取消费者连接列表AdminBrokerProcessor#getConsumerConnectionListAdminBrokerProcessor#processRequest#this.getConsumerConnectionList(ctx, request)private RemotingCommand getConsumerConnectionList(ChannelHandle...原创 2020-03-05 17:50:01 · 369 阅读 · 0 评论 -
rocketmq 之namesrv(二十)mqclient admin请求处理获取topic的状态信息
获取topic的状态信息AdminBrokerProcessor#getTopicStatsInfoAdminBrokerProcessor#processRequest#this.getTopicStatsInfo(ctx, request)private RemotingCommand getTopicStatsInfo(ChannelHandlerContext ctx, ...原创 2020-03-05 17:49:30 · 293 阅读 · 0 评论 -
rocketmq 之namesrv(十九)mqclient admin请求处理删除订阅组
删除订阅组AdminBrokerProcessor#deleteSubscriptionGroupAdminBrokerProcessor#processRequest#this.deleteSubscriptionGroup(ctx, request)private RemotingCommand deleteSubscriptionGroup(ChannelHandlerContext c...原创 2020-03-03 18:27:58 · 1470 阅读 · 0 评论 -
rocketmq 之namesrv(十八)mqclient admin请求处理获取所有的订阅组配置信息
获取所有的订阅组配置信息AdminBrokerProcessor#getAllSubscriptionGroupAdminBrokerProcessor#processRequest#this.getAllSubscriptionGroup(ctx, request)private RemotingCommand getAllSubscriptionGroup(ChannelHandlerCo...原创 2020-03-03 18:27:45 · 427 阅读 · 0 评论 -
rocketmq 之namesrv(十七)mqclient admin请求处理更新和创建订阅组
更新和创建订阅组AdminBrokerProcessor#updateAndCreateSubscriptionGroupAdminBrokerProcessor#processRequest#this.updateAndCreateSubscriptionGroup(ctx, request)private RemotingCommand updateAndCreateSubscriptio...原创 2020-03-03 18:27:32 · 553 阅读 · 0 评论 -
rocketmq 之namesrv(十六)mqclient admin请求处理批量解锁消息队列
批量锁定消息队列AdminBrokerProcessor#unlockBatchMQAdminBrokerProcessor#processRequest#this.lockBatchMQ(ctx, request)private RemotingCommand unlockBatchMQ(ChannelHandlerContext ctx, RemotingCommand r...原创 2020-03-03 18:26:20 · 204 阅读 · 0 评论 -
rocketmq 之namesrv(十五)mqclient admin请求处理批量锁定消息队列
批量锁定消息队列AdminBrokerProcessor#lockBatchMQAdminBrokerProcessor#processRequest#this.lockBatchMQ(ctx, request)private RemotingCommand lockBatchMQ(ChannelHandlerContext ctx, RemotingCommand reque...原创 2020-01-06 15:23:26 · 240 阅读 · 0 评论 -
rocketmq 之namesrv(十四)mqclient admin请求处理获取broker的运行时信息
获取broker的运行时信息AdminBrokerProcessor#getBrokerRuntimeInfoAdminBrokerProcessor#processRequest#this.getBrokerRuntimeInfo(ctx, request)private RemotingCommand getBrokerRuntimeInfo(ChannelHandlerContext c...原创 2019-11-25 21:10:03 · 429 阅读 · 2 评论 -
rocketmq 之namesrv(十三)mqclient admin请求处理获取最早的消息存储时间
获取最早的消息存储时间AdminBrokerProcessor#getEarliestMsgStoretimeAdminBrokerProcessor#processRequest#this.getEarliestMsgStoretime(ctx, request)private RemotingCommand getEarliestMsgStoretime(ChannelHandlerCon...原创 2019-11-25 20:47:27 · 339 阅读 · 0 评论 -
rocketmq 之namesrv(十二)mqclient admin请求处理获取最小偏移量
AdminBrokerProcessor#getMinOffsetAdminBrokerProcessor#processRequest#return this.getMinOffset(ctx, request);private RemotingCommand getMinOffset(ChannelHandlerContext ctx, RemotingCommand re...原创 2019-11-21 20:38:30 · 282 阅读 · 0 评论 -
rocketmq 之namesrv(十一)mqclient admin请求处理获取最大偏移量
获取最大偏移量AdminBrokerProcessor#getMaxOffsetAdminBrokerProcessor#processRequest#this.getMaxOffset(ctx, request)private RemotingCommand getMaxOffset(ChannelHandlerContext ctx, RemotingCommand req...原创 2019-11-21 20:32:39 · 388 阅读 · 0 评论 -
rocketmq 之namesrv(十)mqclient admin请求处理根据时间戳查找消息的物理偏移量
根据时间戳查找消息的物理偏移量 AdminBrokerProcessor#processRequest#searchOffsetByTimestamp// 查找存储时间戳为指定值的消息的物理偏移量 private RemotingCommand searchOffsetByTimestamp(ChannelHandlerContext ctx, RemotingCo...原创 2019-11-21 17:29:01 · 472 阅读 · 0 评论 -
rocketmq 之namesrv(九)mqclient admin请求处理获取broker配置信息
AdminBrokerProcessor#processRequest#getBrokerConfigprivate RemotingCommand getBrokerConfig(ChannelHandlerContext ctx, RemotingCommand request) { final RemotingCommand response = RemotingComm...原创 2019-11-21 14:27:10 · 535 阅读 · 0 评论 -
rocketmq 之namesrv(八)mqclient admin请求处理更新broker配置信息
更新broker配置AdminBrokerProcessor#processRequest#updateBrokerConfigprivate synchronized RemotingCommand updateBrokerConfig(ChannelHandlerContext ctx, RemotingCommand request) { final RemotingCom...原创 2019-11-20 21:09:43 · 349 阅读 · 0 评论 -
rocketmq 之namesrv(七)mqclient admin请求处理获取所有topic
获取所有topic AdminBrokerProcessor#processRequest#getAllTopicConfigprivate RemotingCommand getAllTopicConfig(ChannelHandlerContext ctx, RemotingCommand request) {// 创建响应命令对象 final Remotin...原创 2019-11-20 20:17:12 · 789 阅读 · 0 评论 -
rocketmq 之namesrv(六)mqclient admin请求处理删除topic
一步步往源码底层探索很有意思,不过rocketmq的源码没有注解真的是很伤心,自己先跟着天河把一些注释补全 看一遍,然后自己从头到尾追进去以博客形式记录下来,加深理解!删除topic AdminBrokerProcessor#processRequest#deleteTopicprivate synchronized RemotingCommand deleteTopic(ChannelHa...原创 2019-11-19 20:52:47 · 462 阅读 · 0 评论 -
rocketmq 之namesrv(五)mqclient admin请求处理创建或更新topic
跟着天河学架构天河聊架构创建mqclient admin请求NamesrvController启动时创建NettyClientHandler()new NettyClientHandler());->class NettyClientHandler extends SimpleChannelInboundHandler<RemotingCommand> { ...原创 2019-11-18 21:00:30 · 807 阅读 · 1 评论 -
rocketmq 之namesrv(四)NamesrvController启动
参考文章:天河聊架构推荐技术公众号: 天河聊架构NamesrvStartup启动NamesrvController// 创建namesrv控制器NamesrvController controller = createNamesrvController(args);//启动namesrv控制器start(controller);start()方法public static Name...原创 2019-11-15 11:24:53 · 417 阅读 · 0 评论 -
rocketmq 之namesrv(三)NamesrvController创建
createNamesrvController方法//设置rocketmq版本 System.setProperty(RemotingCommand.REMOTING_VERSION_KEY, Integer.toString(MQVersion.CURRENT_VERSION)); //PackageConflictDetect.detectFastjson()...原创 2019-11-14 18:54:00 · 583 阅读 · 0 评论 -
rocketmq 之namesrv(二)以jar方式启动namesrv
原由看了诸多博客,部署rocketmq的namesrv都是将一整个rocketmq-all压缩包下载或者传输到服务器,然后进行类似上一篇博客的流程操作,去启动namesrv。namesrv仅作为一个注册中心,为何不独立出来?于是去理解了shell启动namesrv的流程后,将rocketmq的namesrv模块改成了可以直接jar包启动方式。改造部分新增logback_namesrv.xml...原创 2019-11-14 17:21:41 · 968 阅读 · 0 评论