Permalink
Switch branches/tags
show bla2 JGroups_3_3_0_Alpha2 JGroups_3_2_7_Final JGroups_3_2_6_Final JGroups_3_2_5_Final JGroups_3_2_4_Final JGroups_3_2_3_Final JGroups_3_2_2_Final JGroups_3_2_1_Final JGroups_3_2_0_Final JGroups_3_2_0_CR2 JGroups_3_2_0_CR1 JGroups_3_2_0_Beta1 JGroups_3_2_0_Alpha1 JGroups_3_1_0_Final JGroups_3_1_0_Beta1 JGroups_3_1_0_Alpha3 JGroups_3_1_0_Alpha2 JGroups_3_0_16_Final JGroups_3_0_14_Final JGroups_3_0_13_Final JGroups_3_0_12_Final JGroups_3_0_11_Final JGroups_3_0_10_Final JGroups_3_0_9_Final JGroups_3_0_8_Final JGroups_3_0_7_Final JGroups_3_0_6_Final JGroups_3_0_5_Final JGroups_3_0_4_Final JGroups_3_0_3_Final JGroups_3_0_2_Final JGroups_3_0_1_Final JGroups_3_0_0_Final JGroups_3_0_0_CR5 JGroups_3_0_0_CR4 JGroups_2_12_2_Final JGroups_2_12_1_3 JGroups_2_12_1_2 JGroups_2_12_1_1 JGroups_2_12_1 JGroups_2_12_0_Final JGroups_2_12_0_Beta1 JGroups_2_11_1_Final JGroups_2_11_0_GA JGroups_2_11_0_Alpha4 JGroups_2_11_0_Alpha1 JGroups_2_10_0_GA JGroups_2_10_0_CR1 JGroups_2_10_0_Beta1 JGroups_2_10_0_Alpha2 JGroups_2_10_0_Alpha1 JGroups_2_9_0_GA JGroups_2_8_0_GA JGroups_2_8_0_CR6 JGroups_2_8_0_CR4 JGroups_2_8_0_CR2 JGroups_2_8_0_CR1 JGroups_2_8_Beta_2 JGroups_2_8_Beta1 JGroups_2_7 JGroups_2_7_Beta1 JGroups_2_6_22_Final JGroups_2_6_21_Final JGroups_2_6_20 JGroups_2_6_19_GA JGroups_2_6_17_GA JGroups_2_6_16 JGroups_2_6_15_GA JGroups_2_6_13_GA JGroups_2_6_13_CR2 JGroups_2_6_13_CR1 JGroups_2_6_12_GA JGroups_2_6_11_GA JGroups_2_6_10_GA JGroups_2_6_9_GA JGroups_2_6_8_GA JGroups_2_6_7_GA JGroups_2_6_6_GA JGroups_2_6_5_GA JGroups_2_6_4_GA JGroups_2_6_4_CR1 JGroups_2_6_3_GA JGroups_2_6_3_CR2 JGroups_2_6_3_CR1 JGroups_2_6_2 JGroups_2_6_1 JGroups_2_6_beta_1 JGroups_2_6_CR1 JGroups_2_5_2 JGroups_2_5_0_PREVIEW JGroups_2_5 JGroups_2_5_CR_1 JGroups_2_5_BETA_2 JGroups_2_5_BETA_1 JGroups_2_5_ALPHA1 JGroups_2_4_10_Final JGroups_2_4_9_GA JGroups_2_4_7_GA
Nothing to show
Find file
Fetching contributors…
Cannot retrieve contributors at this time
executable file 61 lines (50 sloc) 1.62 KB
#!/bin/bash
#Author: Pedro Ruivo
#Since: 3.1
#Note: I'm assuming that jgroups-<version>.jar is in the same directory as this script. The same applies for
# for the log4j.properties
WORKING_DIR=`cd $(dirname $0); pwd`
HOSTNAME=`hostname`
CP="${WORKING_DIR}/jgroups*.jar"
#enable remote JMX
JMX="-Dcom.sun.management.jmxremote.port=8081 -Dcom.sun.management.jmxremote.authenticate=false -Dcom.sun.management.jmxremote.ssl=false"
#jgroups flags
JG_FLAGS="-Dresolve.dns=false -Djgroups.bind_addr=${HOSTNAME} -Djava.net.preferIPv4Stack=true -Djgroups.timer.num_threads=4"
#log4j
LOG4J="-Dlog4j.configuration=file:${WORKING_DIR}/log4j.properties"
#java flags
JAVA_FLAGS="-server -Xmx7G -Xms7G"
while [ -n "$1" ]; do
case $1 in
-h) HELP="1"; break;;
-test-order) ORDER="1"; shift 1; break;;
-nr-nodes) NR_NODES=$2; shift 2;;
-nr-messages) NR_MESSAGES=$2; shift 2;;
-config) CONFIG=$2; shift 2;;
-*) echo "unknown option $1"; shift 1;;
*) echo "unknown argument $1"; shift 1;;
esac;
done
if [ -n "${HELP}" ]; then
ARGS="-h"
else if [ -n "${ORDER}" ]; then
CMD="java ${JAVA_FLAGS} -cp ${CP} ${JMX} ${JG_FLAGS} ${LOG4J} org.jgroups.tests.CheckToaOrder $*"
echo ${CMD}
${CMD} > ${WORKING_DIR}/check_std_out_${HOSTNAME}.out 2>&1 &
exit 0
ARGS="-test-order $*"
else
if [ -n "${NR_NODES}" ]; then
ARGS="-nr-nodes ${NR_NODES}"
fi
if [ -n "${NR_MESSAGES}" ]; then
ARGS="${ARGS} -nr-messages ${NR_MESSAGES}"
fi
if [ -n "${CONFIG}" ]; then
ARGS="${ARGS} -config ${CONFIG}"
fi
fi
fi
CMD="java ${JAVA_FLAGS} -cp ${CP} ${JMX} ${JG_FLAGS} ${LOG4J} org.jgroups.tests.TestToaOrder ${ARGS}"
echo ${CMD}
${CMD} > ${WORKING_DIR}/std_out_${HOSTNAME}.out 2>&1 &