User: chirino 
  Date: 01/07/27 17:33:38

  Modified:    src/main/org/jbossmq/pm PersistenceManager.java
                        TxManager.java
  Log:
  Once again many changes.
  - The logic that handled the processing of queue and topic messages
   was seperated our more to make it easier to follow.
  - A QueuedTask class was created to avoid unneeded processing of queues.
  - The interface between the client-server-queues-peristence manager to handel
   DurableSubscription was too verbose, created a DurableSubscripton class and now
   SpyTopics can be inspected to see if they are being used as a DurableSubscription
  - The MBeans that add queues and topics makes it simpler to configure a queue/topic.
  
  Revision  Changes    Path
  1.3       +23 -15    jbossmq/src/main/org/jbossmq/pm/PersistenceManager.java
  
  Index: PersistenceManager.java
  ===================================================================
  RCS file: /cvsroot/jboss/jbossmq/src/main/org/jbossmq/pm/PersistenceManager.java,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- PersistenceManager.java   2001/07/16 02:51:46     1.2
  +++ PersistenceManager.java   2001/07/28 00:33:38     1.3
  @@ -25,7 +25,7 @@
    *   @author Hiram Chirino ([EMAIL PROTECTED])
    *  @author Paul Kendall ([EMAIL PROTECTED])
    *
  - *   @version $Revision: 1.2 $
  + *   @version $Revision: 1.3 $
    */
   public interface PersistenceManager {
   
  @@ -65,32 +65,40 @@
      */
        public abstract void rollbackPersistentTx(Long txId) throws 
javax.jms.JMSException;
   
  +
  +
  +
  +
  +
  +
  +
  +
  +     public TxManager getTxManager();
  +
  +     /**
  +      * Restore messages from the persistent queues.
  +      */
  +     public abstract void restore(org.jbossmq.server.JMSServer server) throws 
javax.jms.JMSException;
  +
     /**
  -   * Initialize the queue.
  +   * Remove message from the persistent store.
  +   * If the message is part of a transaction, txId is not null.
      */
  -     public abstract void initQueue( SpyDestination dest, String queueId ) throws 
javax.jms.JMSException;
  +     public abstract void add(SpyMessage message, Long txId) throws 
javax.jms.JMSException;
   
     /**
      * Remove the queue, and all messages in it, from the persistent store
      */
  -     public abstract void destroyQueue( SpyDestination dest, String queueId ) 
throws javax.jms.JMSException;
  +     public abstract void destroyQueue( SpyDestination dest ) throws 
javax.jms.JMSException;
   
     /**
  -   * Remove message from the persistent store.
  -   * If the message is part of a transaction, txId is not null.
  +   * Initialize the queue.
      */
  -     public abstract void add(String queueId, SpyMessage message, Long txId) throws 
javax.jms.JMSException;
  +     public abstract void initQueue( SpyDestination dest ) throws 
javax.jms.JMSException;
   
     /**
      * Remove message from the persistent store.
      * If the message is part of a transaction, txId is not null.
      */
  -     public abstract void remove(String queueId, SpyMessage message, Long txId) 
throws javax.jms.JMSException;
  -
  -     public TxManager getTxManager();
  -
  -     /**
  -      * Restore messages from the persistent queues.
  -      */
  -     public abstract void restore(org.jbossmq.server.JMSServer server) throws 
javax.jms.JMSException;
  +     public abstract void remove(SpyMessage message, Long txId) throws 
javax.jms.JMSException;
   }
  
  
  
  1.3       +5 -5      jbossmq/src/main/org/jbossmq/pm/TxManager.java
  
  Index: TxManager.java
  ===================================================================
  RCS file: /cvsroot/jboss/jbossmq/src/main/org/jbossmq/pm/TxManager.java,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- TxManager.java    2001/07/16 02:51:46     1.2
  +++ TxManager.java    2001/07/28 00:33:38     1.3
  @@ -25,7 +25,7 @@
    *   @author Hiram Chirino ([EMAIL PROTECTED])
    *  @author Paul Kendall ([EMAIL PROTECTED])
    *
  - *   @version $Revision: 1.2 $
  + *   @version $Revision: 1.3 $
    */
   public class TxManager {
   
  @@ -100,7 +100,7 @@
                task.run();
          }
        }
  -  }        
  +  }          
   
        public final void addPostCommitTask(Long txId, Runnable task) throws 
javax.jms.JMSException {
   
  @@ -144,7 +144,7 @@
          }
        }
   
  -  }        
  +  }          
   
        public final void addPostRollbackTask(Long txId, Runnable task) throws 
javax.jms.JMSException {
   
  @@ -213,7 +213,7 @@
                addPostRollbackTask(txId, gxid);
   
                return txId;
  -  }        
  +  }          
   
     /**
      * Return the local transaction id for a distributed transaction id.
  @@ -229,5 +229,5 @@
                        throw new JMSException("Transaction does not exist from: 
"+dc.getClientID()+" xid="+xid);
   
                return txid;
  -  }        
  +  }          
   }
  
  
  

_______________________________________________
Jboss-development mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/jboss-development

Reply via email to