org.apache.synapse.message.store
Class MessageStoreView

java.lang.Object
  extended by org.apache.synapse.message.store.MessageStoreView
All Implemented Interfaces:
MessageStoreViewMBean

public class MessageStoreView
extends Object
implements MessageStoreViewMBean


Constructor Summary
MessageStoreView(String name, MessageStore messageStore)
           
 
Method Summary
 void delete(String messageID)
          Delete the Message with Given id
 void deleteAll()
          Delete all the Messages in Message store
 String getEnvelope(String messageID)
          Get the SOAP envelope of the given Message with given ID
 List<String> getMessageIds()
          Get the Message IDs of all stored Messages in the Message store
 int getSize()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MessageStoreView

public MessageStoreView(String name,
                        MessageStore messageStore)
Method Detail

deleteAll

public void deleteAll()
Description copied from interface: MessageStoreViewMBean
Delete all the Messages in Message store

Specified by:
deleteAll in interface MessageStoreViewMBean

getMessageIds

public List<String> getMessageIds()
Description copied from interface: MessageStoreViewMBean
Get the Message IDs of all stored Messages in the Message store

Specified by:
getMessageIds in interface MessageStoreViewMBean
Returns:
a list of message ID values

delete

public void delete(String messageID)
Description copied from interface: MessageStoreViewMBean
Delete the Message with Given id

Specified by:
delete in interface MessageStoreViewMBean
Parameters:
messageID - ID of the message to be deleted

getEnvelope

public String getEnvelope(String messageID)
Description copied from interface: MessageStoreViewMBean
Get the SOAP envelope of the given Message with given ID

Specified by:
getEnvelope in interface MessageStoreViewMBean
Parameters:
messageID - ID of the message to be returned
Returns:
the SOAP envelope content as a string

getSize

public int getSize()
Specified by:
getSize in interface MessageStoreViewMBean
Returns:
the number of Messages stored in the store.


Copyright © 2005-2012 Apache Software Foundation. All Rights Reserved.