[jboss-svn-commits] JBL Code SVN: r33760 - in labs/jbosstm/workspace/whitingjr/sandbox/batch-execution-SPEC-jms2007/scripts: server-controller and 1 other directory.
jboss-svn-commits at lists.jboss.org
jboss-svn-commits at lists.jboss.org
Wed Jul 7 12:18:41 EDT 2010
Author: whitingjr
Date: 2010-07-07 12:18:41 -0400 (Wed, 07 Jul 2010)
New Revision: 33760
Added:
labs/jbosstm/workspace/whitingjr/sandbox/batch-execution-SPEC-jms2007/scripts/server-controller/
labs/jbosstm/workspace/whitingjr/sandbox/batch-execution-SPEC-jms2007/scripts/server-controller/CONFIGURATION.txt
labs/jbosstm/workspace/whitingjr/sandbox/batch-execution-SPEC-jms2007/scripts/server-controller/server-api.properties
labs/jbosstm/workspace/whitingjr/sandbox/batch-execution-SPEC-jms2007/scripts/server-controller/server-api.xml
labs/jbosstm/workspace/whitingjr/sandbox/batch-execution-SPEC-jms2007/scripts/server-controller/server-commands.xml
Log:
Added commands and api tasks for the benchmark controller.
Added: labs/jbosstm/workspace/whitingjr/sandbox/batch-execution-SPEC-jms2007/scripts/server-controller/CONFIGURATION.txt
===================================================================
--- labs/jbosstm/workspace/whitingjr/sandbox/batch-execution-SPEC-jms2007/scripts/server-controller/CONFIGURATION.txt (rev 0)
+++ labs/jbosstm/workspace/whitingjr/sandbox/batch-execution-SPEC-jms2007/scripts/server-controller/CONFIGURATION.txt 2010-07-07 16:18:41 UTC (rev 33760)
@@ -0,0 +1,14 @@
+
+ The ant script requires libraries to be installed to extend functionality.
+
+The following extensions need copying into the ANT_HOME/lib directory. This project
+has chosen the technique of installing files to the lib directiory.
+
+xmltask
+http://www.oopsconsultancy.com/software/xmltask/
+
+Maven Ant Task
+http://maven.apache.org/ant-tasks/index.html
+
+Groovy
+http://groovy.codehaus.org/The+groovy+Ant+Task
Added: labs/jbosstm/workspace/whitingjr/sandbox/batch-execution-SPEC-jms2007/scripts/server-controller/server-api.properties
===================================================================
--- labs/jbosstm/workspace/whitingjr/sandbox/batch-execution-SPEC-jms2007/scripts/server-controller/server-api.properties (rev 0)
+++ labs/jbosstm/workspace/whitingjr/sandbox/batch-execution-SPEC-jms2007/scripts/server-controller/server-api.properties 2010-07-07 16:18:41 UTC (rev 33760)
@@ -0,0 +1,9 @@
+sever.home=/jboss-5.1.0.Branch
+
+shutdown.command=${sever.home}/bin/shutdown.sh --server=hornetq:1100
+
+startup.command=nohup ${sever.home}/bin/run.sh -c production -b hornetq &
+
+hornetq.configuration.xml=${sever.home}/server/production/deploy/hornetq/hornetq-configuration.xml
+
+jps.output.file/tmp/jpsOutput.txt
Added: labs/jbosstm/workspace/whitingjr/sandbox/batch-execution-SPEC-jms2007/scripts/server-controller/server-api.xml
===================================================================
--- labs/jbosstm/workspace/whitingjr/sandbox/batch-execution-SPEC-jms2007/scripts/server-controller/server-api.xml (rev 0)
+++ labs/jbosstm/workspace/whitingjr/sandbox/batch-execution-SPEC-jms2007/scripts/server-controller/server-api.xml 2010-07-07 16:18:41 UTC (rev 33760)
@@ -0,0 +1,66 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+Copyright 2009 Red Hat, Inc.
+ Red Hat 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.
+ -->
+<!--
+ Installed on the server.
+ This file contains the commands that should be called
+ on the command line.
+-->
+<project name="RedHat-JBoss-Performance:Server Controller API" default="usage" basedir="." xmlns:artifact="antlib:org.apache.maven.artifact.ant">
+
+ <property file="server-api.properties" />
+ <taskdef name="xmltask" classname="com.oopsconsultancy.xmltask.ant.XmlTask"/>
+ <taskdef name="groovy" classname="org.codehaus.groovy.ant.Groovy"/>
+
+ <!--artifact:pom id="perfpom" file="../../pom.xml"/-->
+
+ <target name="startup" >
+ <exec executable="${startup.command}"/>
+ </target>
+
+ <target name="shutdown" >
+ <exec executable="${shutdown.command}"/>
+ <waitfor maxwait="20" checkeveryunit="second"/>
+
+ <xmltask source="${sever.home}/server/production/deploy/hornetq/hornetq-configuration.xml">
+ <copy path="/configuration/journal-directory" buffer="hornetq.journal.dir"/>
+ </xmltask>
+ <echo>journal directory[${hornetq.journal.dir}] is deleted</echo>
+ <delete dir="${hornetq.journal.dir}">
+ </delete>
+
+ </target>
+
+ <target name="start-jstat">
+ <delete file="${jps.output.file}"/>
+ <exec executable="jps" outputproperty="jstat.output" output="${jps.output.file}"/>
+ <condition property="server.isStarted">
+ <contains string="${jstat.output}" substring="Main" />
+ </condition>
+ <antcall target="jstat" inheritall="true"/>
+ </target>
+
+ <target name="jstat" if="server.isStarted">
+
+ <!--groovy src="../../src/main/groovy/groovy-api.groovy">
+ <arg value="${jps.output.file}"/>
+ </groovy-->
+
+
+ </target>
+
+ <target name="usage">
+ <message echo="Do not call this Ant file directly. Use the commands file instead."/>
+ </target>
+
+</project>
\ No newline at end of file
Added: labs/jbosstm/workspace/whitingjr/sandbox/batch-execution-SPEC-jms2007/scripts/server-controller/server-commands.xml
===================================================================
--- labs/jbosstm/workspace/whitingjr/sandbox/batch-execution-SPEC-jms2007/scripts/server-controller/server-commands.xml (rev 0)
+++ labs/jbosstm/workspace/whitingjr/sandbox/batch-execution-SPEC-jms2007/scripts/server-controller/server-commands.xml 2010-07-07 16:18:41 UTC (rev 33760)
@@ -0,0 +1,39 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+Copyright 2009 Red Hat, Inc.
+ Red Hat 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.
+ -->
+ <!-- This file should be installed on the server machine.
+ This file should be called from the command line.
+ -->
+<project name="RedHat-JBoss-Performance:Server Controller Commands" default="usage" >
+
+ <property file="server-commands.properties" />
+
+ <target name="start" >
+ <echo>Starting the server.</echo>
+
+ <ant antfile="server-api.xml" target="shutdown"/>
+ <ant antfile="server-api.xml" target="startup"/>
+ </target>
+
+ <target name="stop" >
+ <echo>Stopping the server.</echo>
+ <ant antfile="server-api.xml" target="shutdown"/>
+ </target>
+
+
+ <target name="usage">
+ <message echo="usage: ant -buildfile build-commands.xml task-name"/>
+ </target>
+
+
+</project>
\ No newline at end of file
More information about the jboss-svn-commits
mailing list