org.apache.qpid.tools.messagestore
Class MessageStoreTool.State

java.lang.Object
  extended by 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.


Constructor Summary
MessageStoreTool.State()
           
 
Method Summary
 void clearAll()
           
 void clearExchange()
           
 void clearMessages()
           
 void clearQueue()
           
 Exchange getExchange()
           
 List<Long> getMessages()
           
 AMQQueue getQueue()
           
 VirtualHost getVhost()
           
 String printMessages()
           
 void setExchange(Exchange exchange)
           
 void setMessages(List<Long> msgids)
           
 void setMessages(String msgString)
          A common location to provide parsing of the message id string utilised by a number of the commands.
 void setQueue(AMQQueue queue)
           
 void setVhost(VirtualHost vhost)
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

MessageStoreTool.State

public MessageStoreTool.State()
Method Detail

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