org.apache.qpid.tools.messagestore
Class MessageStoreTool.State
java.lang.Object
org.apache.qpid.tools.messagestore.MessageStoreTool.State
- Enclosing class:
- MessageStoreTool
public static class MessageStoreTool.State
- extends Object
This class is used to store the current state of the tool.
This is then interrogated by the various commands to augment their behaviour.
MessageStoreTool.State
public MessageStoreTool.State()
setQueue
public void setQueue(AMQQueue queue)
getQueue
public AMQQueue getQueue()
setVhost
public void setVhost(VirtualHost vhost)
getVhost
public VirtualHost getVhost()
getExchange
public Exchange getExchange()
setExchange
public void setExchange(Exchange exchange)
toString
public String toString()
- Overrides:
toString
in class Object
printMessages
public String printMessages()
clearAll
public void clearAll()
clearExchange
public void clearExchange()
clearQueue
public void clearQueue()
clearMessages
public void clearMessages()
setMessages
public void setMessages(String msgString)
- A common location to provide parsing of the message id string
utilised by a number of the commands.
The String is comma separated list of ids that can be individual ids
or a range (4-10)
- Parameters:
msgString
- string of msg ids to parse 1,2,4-10
setMessages
public void setMessages(List<Long> msgids)
getMessages
public List<Long> getMessages()
Licensed to the Apache Software Foundation