org.apache.qpid.tools.messagestore.commands
Class Show

java.lang.Object
  extended by org.apache.qpid.tools.messagestore.commands.AbstractCommand
      extended by org.apache.qpid.tools.messagestore.commands.Show
All Implemented Interfaces:
Command
Direct Known Subclasses:
Dump

public class Show
extends AbstractCommand


Nested Class Summary
static class Show.Columns
           
 
Field Summary
protected  boolean _amqHeaders
           
protected  boolean _msgHeaders
           
protected  boolean _routing
           
 
Fields inherited from class org.apache.qpid.tools.messagestore.commands.AbstractCommand
_console, _tool
 
Constructor Summary
Show(MessageStoreTool tool)
           
 
Method Summary
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.
 void execute(String... args)
           
 String getCommand()
           
 String help()
           
protected  boolean includeMsg(ServerMessage msg, List<Long> msgids)
           
protected  void parseArgs(String... args)
           
protected  void performShow()
           
 String usage()
           
 
Methods inherited from class org.apache.qpid.tools.messagestore.commands.AbstractCommand
commandError, setOutput
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

_amqHeaders

protected boolean _amqHeaders

_routing

protected boolean _routing

_msgHeaders

protected boolean _msgHeaders
Constructor Detail

Show

public Show(MessageStoreTool tool)
Method Detail

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 display
messages - A list of messages to format and display.
showHeaders - should the header info be shown
showRouting - show the routing info be shown
showMessageHeaders - 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