[jbosscache-commits] JBoss Cache SVN: r4960 - cache-bench-fwk/trunk.
jbosscache-commits at lists.jboss.org
jbosscache-commits at lists.jboss.org
Thu Jan 3 04:26:18 EST 2008
Author: mircea.markus
Date: 2008-01-03 04:26:18 -0500 (Thu, 03 Jan 2008)
New Revision: 4960
Modified:
cache-bench-fwk/trunk/runNode.sh
Log:
updated log config
Modified: cache-bench-fwk/trunk/runNode.sh
===================================================================
--- cache-bench-fwk/trunk/runNode.sh 2008-01-03 08:19:09 UTC (rev 4959)
+++ cache-bench-fwk/trunk/runNode.sh 2008-01-03 09:26:18 UTC (rev 4960)
@@ -1,25 +1,23 @@
#!/bin/bash
# author: Mircea.Markus at jboss.com
-# cygwin users: add the scripts from :pserver:anoncvs at cygwin.com:/cvs/cygwin-apps/wrappers/java to the cygwin_home/usr/local/bin
+# cygwin users: add the scripts from :pserver:anoncvs at cygwin.com:/cvs/cygwin-apps/wrappers/java to the $cygwin_home/usr/local/bin
# those would make an automatic conversion from unix CLASSPATH to win classpath, needed when executing java -cp
-BIND_ADDRESS=127.0.0.1
CACHE_DEBUG=true
preferIPv4Stack=true
if [ -z $1 ]
then
echo "Usage:"
- echo " ./runNode.sh currentNodeIndex testConfig [other params]"
- echo "currentNodeIndex : the index of this node in the list of nodes in the cluster, zero based"
- echo "testConfig : must be on of the directories form cache products"
- echo "other params : this will be passed as argument to the cache benchmark class."
- echo " Might be used, for e.g. to pass -D arguments to the custom plugins"
- echo " configured in cachebench.xml"
+ echo " ./runNode.sh currentNodeIndex testConfig otherSysProps customConfigFile"
+ echo "currentNodeIndex : the index of this node in the list of nodes in the cluster(0..n)"
+ echo "testConfig : must be one of the directories names under 'cache-products'"
+ echo "other params : should be used to pass -D arguments to the custom plugins. e.g. JBossCache might need an 'bindAddress' argument"
+ echo "customConfigFile : the path to the a custom 'cachebenchmark.xml' (other than the one in 'conf' dir which is loaded by default)"
exit 0
fi
-export SYS_PROPS="-Dbind.address=$BIND_ADDRESS -DcurrentIndex=$1 -Dorg.cachebench.debug=$CACHE_DEBUG -Djava.net.preferIPv4Stack=$preferIPv4Stack"
+export SYS_PROPS="-DcurrentIndex=$1 -Dorg.cachebench.debug=$CACHE_DEBUG -Djava.net.preferIPv4Stack=$preferIPv4Stack"
#libraries needed by the fwk, add them to the classpath
for JAR in ./lib/*
@@ -49,6 +47,6 @@
else
TO_EXECUTE="java -cp $CLASSPATH $SYS_PROPS org.cachebench.CacheBenchmarkRunner $3"
echo executing $TO_EXECUTE
- java -cp $CLASSPATH $SYS_PROPS org.cachebench.CacheBenchmarkRunner $3
+ java -cp $CLASSPATH $3 $SYS_PROPS org.cachebench.CacheBenchmarkRunner $4
fi
More information about the jbosscache-commits
mailing list