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

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

public class Dump
extends Show


Nested Class Summary
 
Nested classes/interfaces inherited from class org.apache.qpid.tools.messagestore.commands.Show
Show.Columns
 
Field Summary
protected  boolean _content
           
 
Fields inherited from class org.apache.qpid.tools.messagestore.commands.Show
_amqHeaders, _msgHeaders, _routing
 
Fields inherited from class org.apache.qpid.tools.messagestore.commands.AbstractCommand
_console, _tool
 
Constructor Summary
Dump(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()
           
 String usage()
           
 
Methods inherited from class org.apache.qpid.tools.messagestore.commands.Show
includeMsg, parseArgs, performShow
 
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

_content

protected boolean _content
Constructor Detail

Dump

public Dump(MessageStoreTool tool)
Method Detail

help

public String help()
Specified by:
help in interface Command
Overrides:
help in class Show

usage

public String usage()
Specified by:
usage in interface Command
Overrides:
usage in class Show

getCommand

public String getCommand()
Specified by:
getCommand in interface Command
Overrides:
getCommand in class Show

execute

public void execute(String... args)
Specified by:
execute in interface Command
Overrides:
execute in class Show

createMessageData

protected List<List> createMessageData(List<Long> msgids,
                                       List<QueueEntry> messages,
                                       boolean showHeaders,
                                       boolean showRouting,
                                       boolean showMessageHeaders)
Description copied from class: Show
Create the list data for display from the messages.

Overrides:
createMessageData in class Show
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


Licensed to the Apache Software Foundation