com.alibaba.rocketmq.tools.command.message
类 PrintMessageSubCommand
java.lang.Object
com.alibaba.rocketmq.tools.command.message.PrintMessageSubCommand
- 所有已实现的接口:
- SubCommand
public class PrintMessageSubCommand
- extends Object
- implements SubCommand
打印指定Topic的所有消息,某个时间区间,方便排查问题
- 从以下版本开始:
- 2014-6-22
- 作者:
- shijia.wxr
| 从类 java.lang.Object 继承的方法 |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
PrintMessageSubCommand
public PrintMessageSubCommand()
commandName
public String commandName()
- 指定者:
- 接口
SubCommand 中的 commandName
commandDesc
public String commandDesc()
- 指定者:
- 接口
SubCommand 中的 commandDesc
buildCommandlineOptions
public org.apache.commons.cli.Options buildCommandlineOptions(org.apache.commons.cli.Options options)
- 指定者:
- 接口
SubCommand 中的 buildCommandlineOptions
printMessage
public static void printMessage(List<MessageExt> msgs,
String charsetName)
timestampFormat
public static long timestampFormat(String value)
execute
public void execute(org.apache.commons.cli.CommandLine commandLine,
org.apache.commons.cli.Options options,
RPCHook rpcHook)
- 指定者:
- 接口
SubCommand 中的 execute
Copyright © 2012-2014. All Rights Reserved.