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

构造方法摘要
PrintMessageSubCommand()
           
 
方法摘要
 org.apache.commons.cli.Options buildCommandlineOptions(org.apache.commons.cli.Options options)
           
 String commandDesc()
           
 String commandName()
           
 void execute(org.apache.commons.cli.CommandLine commandLine, org.apache.commons.cli.Options options, RPCHook rpcHook)
           
static void printMessage(List<MessageExt> msgs, String charsetName)
           
static long timestampFormat(String value)
           
 
从类 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-2015. All Rights Reserved.