[jboss-svn-commits] JBL Code SVN: r29716 - in labs/jbosstm/workspace/whitingjr/trunk/performance/src: main/resources/properties/database/hsql and 4 other directories.

jboss-svn-commits at lists.jboss.org jboss-svn-commits at lists.jboss.org
Wed Oct 21 08:49:43 EDT 2009


Author: whitingjr
Date: 2009-10-21 08:49:43 -0400 (Wed, 21 Oct 2009)
New Revision: 29716

Added:
   labs/jbosstm/workspace/whitingjr/trunk/performance/src/main/resources/properties/database/hsql/
   labs/jbosstm/workspace/whitingjr/trunk/performance/src/test/java/auction/
   labs/jbosstm/workspace/whitingjr/trunk/performance/src/test/java/auction/test/
   labs/jbosstm/workspace/whitingjr/trunk/performance/src/test/java/auction/test/basic/
   labs/jbosstm/workspace/whitingjr/trunk/performance/src/test/java/auction/test/basic/ProfiledStateTransitions.java
Modified:
   labs/jbosstm/workspace/whitingjr/trunk/performance/src/main/resources/properties/database/hsql/db-profile.properties
Log:


Copied: labs/jbosstm/workspace/whitingjr/trunk/performance/src/main/resources/properties/database/hsql (from rev 29643, labs/jbosstm/workspace/whitingjr/trunk/performance/src/main/resources/properties/database/hsqldb)

Modified: labs/jbosstm/workspace/whitingjr/trunk/performance/src/main/resources/properties/database/hsql/db-profile.properties
===================================================================
--- labs/jbosstm/workspace/whitingjr/trunk/performance/src/main/resources/properties/database/hsqldb/db-profile.properties	2009-10-16 17:34:06 UTC (rev 29643)
+++ labs/jbosstm/workspace/whitingjr/trunk/performance/src/main/resources/properties/database/hsql/db-profile.properties	2009-10-21 12:49:43 UTC (rev 29716)
@@ -1,5 +1,7 @@
 # specify which packages or classes are to be profiled. These will be identical across any database installation
-db-vendor-profiling=org.apache.derby
+db-vendor-profiling=org.hsqldb.lib.HsqlByteArrayInputStream,org.hsqldb.lib.HsqlByteArrayOutputStream,org.hsqldb.jdbcDriver
 
 # inclusion xpaths
 db.xslt.xpaths=/*/@db-class='x.x.DriverClass'
+
+db.supports.xa=false

Added: labs/jbosstm/workspace/whitingjr/trunk/performance/src/test/java/auction/test/basic/ProfiledStateTransitions.java
===================================================================
--- labs/jbosstm/workspace/whitingjr/trunk/performance/src/test/java/auction/test/basic/ProfiledStateTransitions.java	                        (rev 0)
+++ labs/jbosstm/workspace/whitingjr/trunk/performance/src/test/java/auction/test/basic/ProfiledStateTransitions.java	2009-10-21 12:49:43 UTC (rev 29716)
@@ -0,0 +1,49 @@
+ /*
+  * JBoss, Home of Professional Open Source
+  * Copyright 2005, JBoss Inc., and individual contributors as indicated
+  * by the @authors tag. See the copyright.txt in the distribution for a
+  * full listing of individual contributors.
+  *
+  * This is free software; you can redistribute it and/or modify it
+  * under the terms of the GNU Lesser General Public License as
+  * published by the Free Software Foundation; either version 2.1 of
+  * the License, or (at your option) any later version.
+  *
+  * This software is distributed in the hope that it will be useful,
+  * but WITHOUT ANY WARRANTY; without even the implied warranty of
+  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+  * Lesser General Public License for more details.
+  *
+  * You should have received a copy of the GNU Lesser General Public
+  * License along with this software; if not, write to the Free
+  * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+  * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+  */
+
+package auction.test.basic;
+
+import org.apache.log4j.Logger;
+import org.testng.annotations.AfterGroups;
+import org.testng.annotations.BeforeGroups;
+
+import com.mentorgen.tools.profile.runtime.Profile;
+
+public class ProfiledStateTransitions extends PersistentStateTransitions
+{
+   private static Logger logger = Logger.getLogger(ProfiledStateTransitions.class);
+   @BeforeGroups (groups="integration-persistence")
+   public void startProfiler( ) throws Exception
+   {
+      logger.info("Starting profiler.....");
+      Profile.clear();
+      Profile.start();
+   }
+   
+   @AfterGroups (groups="integration-persistence")
+   public void stopProfiling()
+   {
+      logger.info("Profiling stopped.");
+      Profile.stop();
+      Profile.shutdown();
+   }
+}



More information about the jboss-svn-commits mailing list