org.exolab.jms.tools.migration.master
Class MasterMessageStore

java.lang.Object
  |
  +--org.exolab.jms.tools.migration.master.MasterMessageStore
All Implemented Interfaces:
Store

public class MasterMessageStore
extends java.lang.Object
implements Store

MasterMessageStore manages a collection of persistent messages.

Version:
$Revision: 1.2 $ $Date: 2005/10/20 14:07:03 $
Author:
Tim Anderson

Constructor Summary
MasterMessageStore(org.exolab.jms.persistence.DatabaseService database)
          Construct a new MasterDestinationStore.
 
Method Summary
 StoreIterator exportCollection()
          Export the messages.
 void importCollection(StoreIterator iterator)
          Import messages into the store.
 int size()
          Returns the number of elements in the collection.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MasterMessageStore

public MasterMessageStore(org.exolab.jms.persistence.DatabaseService database)
Construct a new MasterDestinationStore.
Parameters:
database - the database service
Method Detail

exportCollection

public StoreIterator exportCollection()
                               throws javax.jms.JMSException,
                                      org.exolab.jms.persistence.PersistenceException
Export the messages.
Specified by:
exportCollection in interface Store
Returns:
an iterator over the collection
Throws:
javax.jms.JMSException - for any JMS error
org.exolab.jms.persistence.PersistenceException - for any persistence error

importCollection

public void importCollection(StoreIterator iterator)
                      throws javax.jms.JMSException,
                             org.exolab.jms.persistence.PersistenceException
Import messages into the store.
Specified by:
importCollection in interface Store
Parameters:
iterator - an iterator over the collection
Throws:
javax.jms.JMSException - for any JMS error
org.exolab.jms.persistence.PersistenceException - for any persistence error

size

public int size()
         throws org.exolab.jms.persistence.PersistenceException
Returns the number of elements in the collection.
Specified by:
size in interface Store
Returns:
the number of elements in the collection
Throws:
org.exolab.jms.persistence.PersistenceException - for any persistence error


Copyright © 1999-2007 The OpenJMS Group. All Rights Reserved.