KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > apache > activemq > perf > AMQStoreDurableTopicTest


1 /**
2  *
3  * Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE
4  * file distributed with this work for additional information regarding copyright ownership. The ASF licenses this file
5  * to You under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the
6  * License. You may obtain a copy of the License at
7  *
8  * http://www.apache.org/licenses/LICENSE-2.0
9  *
10  * Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on
11  * an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the
12  * specific language governing permissions and limitations under the License.
13  */

14
15 package org.apache.activemq.perf;
16
17 import java.io.File JavaDoc;
18 import org.apache.activemq.broker.BrokerService;
19 import org.apache.activemq.store.amq.AMQPersistenceAdapter;
20
21 /**
22  * @version $Revision: 1.3 $
23  */

24 public class AMQStoreDurableTopicTest extends SimpleDurableTopicTest{
25
26    
27     protected void configureBroker(BrokerService answer) throws Exception JavaDoc{
28         File JavaDoc dataFileDir=new File JavaDoc("target/test-amq-data/perfTest/amqdb");
29         AMQPersistenceAdapter adaptor = new AMQPersistenceAdapter();
30         adaptor.setDirectory(dataFileDir);
31         answer.setPersistenceAdapter(adaptor);
32         answer.setDeleteAllMessagesOnStartup(true);
33         answer.addConnector(bindAddress);
34     }
35 }
36
Popular Tags