[jboss-svn-commits] JBL Code SVN: r30933 - labs/jbosstm/workspace/whitingjr/trunk/performance/src/main/java/org/jboss/jbossts/performance/profiler/implementation.
jboss-svn-commits at lists.jboss.org
jboss-svn-commits at lists.jboss.org
Tue Jan 5 13:06:16 EST 2010
Author: whitingjr
Date: 2010-01-05 13:06:16 -0500 (Tue, 05 Jan 2010)
New Revision: 30933
Added:
labs/jbosstm/workspace/whitingjr/trunk/performance/src/main/java/org/jboss/jbossts/performance/profiler/implementation/JProfiler.java
Log:
Added version neutral api class.
Copied: labs/jbosstm/workspace/whitingjr/trunk/performance/src/main/java/org/jboss/jbossts/performance/profiler/implementation/JProfiler.java (from rev 30901, labs/jbosstm/workspace/whitingjr/trunk/performance/src/main/java/org/jboss/jbossts/performance/profiler/implementation/JProfiler5.java)
===================================================================
--- labs/jbosstm/workspace/whitingjr/trunk/performance/src/main/java/org/jboss/jbossts/performance/profiler/implementation/JProfiler.java (rev 0)
+++ labs/jbosstm/workspace/whitingjr/trunk/performance/src/main/java/org/jboss/jbossts/performance/profiler/implementation/JProfiler.java 2010-01-05 18:06:16 UTC (rev 30933)
@@ -0,0 +1,64 @@
+ /*
+ * 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 org.jboss.jbossts.performance.profiler.implementation;
+
+import org.jboss.jbossts.performance.profiler.AbstractProfiler;
+
+public class JProfiler extends AbstractProfiler
+{
+ @Override
+ protected String getStopMethodName()
+ {
+ return "stopMethodStatsRecording";
+ }
+ @Override
+ protected String getSuspendMethodName()
+ {
+ return "stopMethodStatsRecording";
+ }
+ @Override
+ protected String getStartMethodName()
+ {
+ return "startMethodStatsRecording";
+ }
+ @Override
+ protected String getShutDownMethodName()
+ {
+ return "";
+ }
+ @Override
+ protected String getClearMethodName()
+ {
+ return "";
+ }
+ public JProfiler()
+ {
+ super("com.jprofiler.api.agent.Controller");
+ }
+
+ @Override
+ protected boolean usesStaticMethods()
+ {
+ return true;
+ }
+}
More information about the jboss-svn-commits
mailing list