You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@rocketmq.apache.org by GitBox <gi...@apache.org> on 2021/12/17 03:34:53 UTC

[GitHub] [rocketmq] zhaohai1299002788 edited a comment on pull request #3648: Display GID and Topic with namespace

zhaohai1299002788 edited a comment on pull request #3648:
URL: https://github.com/apache/rocketmq/pull/3648#issuecomment-996409370


   > 我认为增加字符串显示长度是可行的,但我有另一种方法来解决这个问题。使用 NamespaceUtil.withoutNamespace 隐藏 MQ 实例 ID
   > 
   > ```
   > System.out.printf("%-32s  %-32s %12d %11.2f %11.2f %14d %14d%n",
   >                         UtilAll.frontStringAtLeast(NamespaceUtil.withoutNamespace(topic), 32),
   >                         UtilAll.frontStringAtLeast(NamespaceUtil.withoutNamespace(group), 32),
   >                         accumulate,
   >                         inTPS,
   >                         outTPS,
   >                         inMsgCntToday,
   >                         outMsgCntToday
   >                     );
   > ```
   Topics and GIDs with namespaces cannot be hidden, they need to be displayed。The same name may be notified at the same time。
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: dev-unsubscribe@rocketmq.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org