activemq-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From rajdav...@apache.org
Subject svn commit: r693833 - in /activemq/sandbox/kahadb: eclipse-classes/ src/test/java/org/apache/kahadb/store/ src/test/java/org/apache/kahadb/store/perf/
Date Wed, 10 Sep 2008 13:14:53 GMT
Author: rajdavies
Date: Wed Sep 10 06:14:53 2008
New Revision: 693833

URL: http://svn.apache.org/viewvc?rev=693833&view=rev
Log:
Added a standard performance test case for the ActiveMQ Store implementation

Added:
    activemq/sandbox/kahadb/eclipse-classes/
    activemq/sandbox/kahadb/src/test/java/org/apache/kahadb/store/perf/
    activemq/sandbox/kahadb/src/test/java/org/apache/kahadb/store/perf/KahaStoreDurableTopicTest.java
      - copied, changed from r693825, activemq/sandbox/kahadb/src/test/java/org/apache/kahadb/store/KahaStoreDurableTopicTest.java
    activemq/sandbox/kahadb/src/test/java/org/apache/kahadb/store/perf/KahaStoreQueueTest.java
  (with props)
Removed:
    activemq/sandbox/kahadb/src/test/java/org/apache/kahadb/store/KahaStoreDurableTopicTest.java

Copied: activemq/sandbox/kahadb/src/test/java/org/apache/kahadb/store/perf/KahaStoreDurableTopicTest.java
(from r693825, activemq/sandbox/kahadb/src/test/java/org/apache/kahadb/store/KahaStoreDurableTopicTest.java)
URL: http://svn.apache.org/viewvc/activemq/sandbox/kahadb/src/test/java/org/apache/kahadb/store/perf/KahaStoreDurableTopicTest.java?p2=activemq/sandbox/kahadb/src/test/java/org/apache/kahadb/store/perf/KahaStoreDurableTopicTest.java&p1=activemq/sandbox/kahadb/src/test/java/org/apache/kahadb/store/KahaStoreDurableTopicTest.java&r1=693825&r2=693833&rev=693833&view=diff
==============================================================================
--- activemq/sandbox/kahadb/src/test/java/org/apache/kahadb/store/KahaStoreDurableTopicTest.java
(original)
+++ activemq/sandbox/kahadb/src/test/java/org/apache/kahadb/store/perf/KahaStoreDurableTopicTest.java
Wed Sep 10 06:14:53 2008
@@ -14,11 +14,12 @@
  * See the License for the specific language governing permissions and
  * limitations under the License.
  */
-package org.apache.kahadb.store;
+package org.apache.kahadb.store.perf;
 
 import java.io.File;
 import org.apache.activemq.broker.BrokerService;
 import org.apache.activemq.perf.SimpleDurableTopicTest;
+import org.apache.kahadb.store.KahaDBPersistenceAdaptor;
 
 /**
  * @version $Revision: 1.3 $

Added: activemq/sandbox/kahadb/src/test/java/org/apache/kahadb/store/perf/KahaStoreQueueTest.java
URL: http://svn.apache.org/viewvc/activemq/sandbox/kahadb/src/test/java/org/apache/kahadb/store/perf/KahaStoreQueueTest.java?rev=693833&view=auto
==============================================================================
--- activemq/sandbox/kahadb/src/test/java/org/apache/kahadb/store/perf/KahaStoreQueueTest.java
(added)
+++ activemq/sandbox/kahadb/src/test/java/org/apache/kahadb/store/perf/KahaStoreQueueTest.java
Wed Sep 10 06:14:53 2008
@@ -0,0 +1,44 @@
+/**
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements.  See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License.  You may obtain a copy of the License at
+ *
+ *      http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package org.apache.kahadb.store.perf;
+
+import java.io.File;
+import org.apache.activemq.broker.BrokerService;
+import org.apache.activemq.perf.SimpleQueueTest;
+import org.apache.kahadb.store.KahaDBPersistenceAdaptor;
+
+/**
+ * @version $Revision: 1.3 $
+ */
+public class KahaStoreQueueTest extends SimpleQueueTest {
+
+    protected void configureBroker(BrokerService answer,String uri) throws Exception {
+        File dataFileDir = new File("target/test-amq-data/perfTest/amqdb");
+        dataFileDir.mkdirs();
+        answer.setDeleteAllMessagesOnStartup(true);
+               
+         KahaDBPersistenceAdaptor adaptor = new KahaDBPersistenceAdaptor();
+         adaptor.setDirectory(dataFileDir);
+         
+        
+        answer.setDataDirectoryFile(dataFileDir);
+        answer.setPersistenceAdapter(adaptor);
+        answer.addConnector(uri);
+    }
+
+}
+

Propchange: activemq/sandbox/kahadb/src/test/java/org/apache/kahadb/store/perf/KahaStoreQueueTest.java
------------------------------------------------------------------------------
    svn:eol-style = native



Mime
View raw message