activemq-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jstrac...@apache.org
Subject svn commit: r372799 - /incubator/activemq/trunk/activemq-core/src/main/java/org/apache/activemq/store/DefaultPersistenceAdapterFactory.java
Date Fri, 27 Jan 2006 09:57:41 GMT
Author: jstrachan
Date: Fri Jan 27 01:57:38 2006
New Revision: 372799

URL: http://svn.apache.org/viewcvs?rev=372799&view=rev
Log:
made the adapter class configurable on the <journaledJDBC adapterClass="...."/>

Modified:
    incubator/activemq/trunk/activemq-core/src/main/java/org/apache/activemq/store/DefaultPersistenceAdapterFactory.java

Modified: incubator/activemq/trunk/activemq-core/src/main/java/org/apache/activemq/store/DefaultPersistenceAdapterFactory.java
URL: http://svn.apache.org/viewcvs/incubator/activemq/trunk/activemq-core/src/main/java/org/apache/activemq/store/DefaultPersistenceAdapterFactory.java?rev=372799&r1=372798&r2=372799&view=diff
==============================================================================
--- incubator/activemq/trunk/activemq-core/src/main/java/org/apache/activemq/store/DefaultPersistenceAdapterFactory.java
(original)
+++ incubator/activemq/trunk/activemq-core/src/main/java/org/apache/activemq/store/DefaultPersistenceAdapterFactory.java
Fri Jan 27 01:57:38 2006
@@ -22,6 +22,7 @@
 import org.activeio.journal.Journal;
 import org.activeio.journal.active.JournalImpl;
 import org.apache.activemq.memory.UsageManager;
+import org.apache.activemq.store.jdbc.JDBCAdapter;
 import org.apache.activemq.store.jdbc.JDBCPersistenceAdapter;
 import org.apache.activemq.store.journal.JournalPersistenceAdapter;
 import org.apache.activemq.store.journal.QuickJournalPersistenceAdapter;
@@ -169,6 +170,22 @@
 
     public void setUseQuickJournal(boolean useQuickJournal) {
         this.useQuickJournal = useQuickJournal;
+    }
+
+    public JDBCAdapter getAdapter() throws IOException {
+        return jdbcAdapter.getAdapter();
+    }
+
+    public String getAdapterClass() {
+        return jdbcAdapter.getAdapterClass();
+    }
+
+    public void setAdapter(JDBCAdapter adapter) {
+        jdbcAdapter.setAdapter(adapter);
+    }
+
+    public void setAdapterClass(String adapterClass) {
+        jdbcAdapter.setAdapterClass(adapterClass);
     }
 
     // Implementation methods



Mime
View raw message