org.apache.qpid.tools.messagestore.commands
Class Show
java.lang.Object
org.apache.qpid.tools.messagestore.commands.AbstractCommand
org.apache.qpid.tools.messagestore.commands.Show
- All Implemented Interfaces:
- Command
- Direct Known Subclasses:
- Dump
public class Show
- extends AbstractCommand
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
_amqHeaders
protected boolean _amqHeaders
_routing
protected boolean _routing
_msgHeaders
protected boolean _msgHeaders
Show
public Show(MessageStoreTool tool)
help
public String help()
- Specified by:
help
in interface Command
- Specified by:
help
in class AbstractCommand
usage
public String usage()
- Specified by:
usage
in interface Command
- Specified by:
usage
in class AbstractCommand
getCommand
public String getCommand()
- Specified by:
getCommand
in interface Command
- Specified by:
getCommand
in class AbstractCommand
execute
public void execute(String... args)
- Specified by:
execute
in interface Command
- Specified by:
execute
in class AbstractCommand
parseArgs
protected void parseArgs(String... args)
performShow
protected void performShow()
createMessageData
protected List<List> createMessageData(List<Long> msgids,
List<QueueEntry> messages,
boolean showHeaders,
boolean showRouting,
boolean showMessageHeaders)
- Create the list data for display from the messages.
- Parameters:
msgids
- The list of message ids to displaymessages
- A list of messages to format and display.showHeaders
- should the header info be shownshowRouting
- show the routing info be shownshowMessageHeaders
- show the msg headers be shown
- Returns:
- the formated data lists for printing
includeMsg
protected boolean includeMsg(ServerMessage msg,
List<Long> msgids)
Licensed to the Apache Software Foundation