Skip to content

Commit 1417183

Browse files
author
valentin
committed
3.1.1c release
1 parent 0fd00aa commit 1417183

File tree

4,527 files changed

+1088678
-0
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

4,527 files changed

+1088678
-0
lines changed

Diff for: bin/ggjunit.bat

+147
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,147 @@
1+
::
2+
:: Copyright (C) GridGain Systems, Inc. Licensed under GPLv3, http://www.gnu.org/licenses/gpl.html
3+
:: _________ _____ __________________ _____
4+
:: __ ____/___________(_)______ /__ ____/______ ____(_)_______
5+
:: _ / __ __ ___/__ / _ __ / _ / __ _ __ `/__ / __ __ \
6+
:: / /_/ / _ / _ / / /_/ / / /_/ / / /_/ / _ / _ / / /
7+
:: \____/ /_/ /_/ \_,__/ \____/ \__,_/ /_/ /_/ /_/
8+
::
9+
:: Version: 3.1.1c.12072011
10+
::
11+
12+
::
13+
:: Grid command line loader.
14+
::
15+
16+
@echo off
17+
18+
if "%OS%" == "Windows_NT" setlocal
19+
20+
:: Check JAVA_HOME.
21+
if not "%JAVA_HOME%" == "" goto checkJdk
22+
echo %0, ERROR: JAVA_HOME environment variable is not found.
23+
echo %0, ERROR: Please create JAVA_HOME variable pointing to location of JDK 1.6 or JDK 1.7.
24+
echo %0, ERROR: You can also download latest JDK at: http://java.sun.com/getjava
25+
goto error_finish
26+
27+
:checkJdk
28+
:: Check that JDK is where it should be.
29+
if exist "%JAVA_HOME%\bin\java.exe" goto checkJdkVersion
30+
echo %0, ERROR: The JDK is not found in %JAVA_HOME%.
31+
echo %0, ERROR: Please modify your script so that JAVA_HOME would point to valid location of JDK.
32+
goto error_finish
33+
34+
:checkJdkVersion
35+
"%JAVA_HOME%\bin\java.exe" -version 2>&1 | findstr "1\.[67]\." > nul
36+
if %ERRORLEVEL% equ 0 goto checkGridGainHome1
37+
echo %0, ERROR: The version of JAVA installed in %JAVA_HOME% is incorrect.
38+
echo %0, ERROR: Please install JDK 1.6 or 1.7.
39+
echo %0, ERROR: You can also download latest JDK at: http://java.sun.com/getjava
40+
goto error_finish
41+
42+
:: Check GRIDGAIN_HOME.
43+
:checkGridGainHome1
44+
if not "%GRIDGAIN_HOME%" == "" goto checkGridGainHome2
45+
echo %0, WARN: GRIDGAIN_HOME environment variable is not found.
46+
pushd "%~dp0"/..
47+
set GRIDGAIN_HOME=%CD%
48+
popd
49+
50+
:checkGridGainHome2
51+
if exist "%GRIDGAIN_HOME%\config" goto run
52+
echo %0, ERROR: GRIDGAIN_HOME environment variable is not valid installation home.
53+
echo %0, ERROR: GRIDGAIN_HOME variable must point to GridGain installation folder.
54+
goto error_finish
55+
56+
:run
57+
58+
:: This is Ant-augmented variable.
59+
set ANT_AUGMENTED_GGJAR=gridgain-3.1.1c.jar
60+
61+
::
62+
:: Set GRIDGAIN_LIBS
63+
::
64+
call "%GRIDGAIN_HOME%\bin\setenv.bat"
65+
66+
set CP=%GRIDGAIN_LIBS%;%GRIDGAIN_HOME%\%ANT_AUGMENTED_GGJAR%
67+
68+
::
69+
:: Process 'verbose' mode and optional Spring configuration file.
70+
::
71+
set CONFIG=%GRIDGAIN_HOME%\config\junit\junit-spring.xml
72+
73+
set QUIET=-DGRIDGAIN_QUIET=true
74+
75+
:parseParameters
76+
if [%1] == [] (
77+
goto java
78+
)
79+
80+
if [%1] == [-v] (
81+
set QUIET=-DGRIDGAIN_QUIET=false
82+
) else (
83+
set CONFIG=%1
84+
)
85+
86+
shift
87+
88+
goto parseParameters
89+
90+
:java
91+
92+
::
93+
:: Find available port for JMX
94+
::
95+
for /F "tokens=*" %%A in ('java -cp "%GRIDGAIN_HOME%\%ANT_AUGMENTED_GGJAR%" org.gridgain.grid.tools.portscanner.GridPortScanner') do set JMX_PORT=%%A
96+
97+
::
98+
:: This variable defines necessary parameters for JMX
99+
:: monitoring and management.
100+
:: ADD YOUR ADDITIONAL PARAMETERS/OPTIONS HERE
101+
::
102+
set JMX_MON=-Dcom.sun.management.jmxremote
103+
104+
::
105+
:: This enables remote unsecure access to JConsole or VisualVM.
106+
:: ADD YOUR ADDITIONAL PARAMETERS/OPTIONS HERE
107+
::
108+
set JMX_MON=%JMX_MON% -Dcom.sun.management.jmxremote.port=%JMX_PORT% -Dcom.sun.management.jmxremote.authenticate=false -Dcom.sun.management.jmxremote.ssl=false
109+
110+
::
111+
:: JVM options. See http://java.sun.com/javase/technologies/hotspot/vmoptions.jsp
112+
:: for more details. Note that default settings use parallel GC.
113+
::
114+
:: ADD YOUR/CHANGE ADDITIONAL OPTIONS HERE
115+
::
116+
set JVM_OPTS=-ea -XX:MaxPermSize=128m -XX:+UseParNewGC -XX:MaxNewSize=32m -XX:NewSize=32m -Xms256m -Xmx256m -XX:SurvivorRatio=128 -XX:MaxTenuringThreshold=0 -XX:+UseTLAB -XX:+UseConcMarkSweepGC -XX:+CMSClassUnloadingEnabled -Djava.net.preferIPv4Stack=true
117+
118+
::
119+
:: If using NewRelic for monitoring - uncomment the following.
120+
:: Make sure to sing up at www.newrelic.com and put your custom newrelic.yml
121+
:: file that you receive after registration into %GRIDGAIN_HOME%\libs folder.
122+
::
123+
:: File newrelic.jar is already shipped with GridGain but you can always
124+
:: update it to the latest in %GRIDGAIN_HOME%\libs folder.
125+
::
126+
:: Note also that since NewRelic is using java agent it will
127+
:: conflict with AspectJ AOP that is also using java agent.
128+
::
129+
:: set JVM_OPTS=%JVM_OPTS% -javaagent:%GRIDGAIN_HOME%\libs\newrelic.jar
130+
131+
::
132+
:: Set program name.
133+
::
134+
set PROG_NAME=gridgain.bat
135+
if "%OS%" == "Windows_NT" set PROG_NAME=%~nx0%
136+
137+
::
138+
:: Remote debugging (JPDA).
139+
:: Uncomment and change if remote debugging is required.
140+
:: set JVM_OPTS=-Xdebug -Xrunjdwp:transport=dt_socket,address=8787,server=y,suspend=n %JVM_OPTS%
141+
::
142+
143+
"%JAVA_HOME%\bin\java.exe" %JVM_OPTS% %JMX_MON% %QUIET% -DGRIDGAIN_SCRIPT -DGRIDGAIN_HOME="%GRIDGAIN_HOME%" -DGRIDGAIN_PROG_NAME="%PROG_NAME%" -cp "%CP%" org.gridgain.grid.loaders.cmdline.GridCommandLineLoader "%CONFIG%"
144+
145+
:error_finish
146+
147+
pause

Diff for: bin/ggjunit.sh

+164
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,164 @@
1+
#!/bin/bash
2+
#
3+
# Copyright (C) GridGain Systems, Inc. Licensed under GPLv3, http://www.gnu.org/licenses/gpl.html
4+
# _________ _____ __________________ _____
5+
# __ ____/___________(_)______ /__ ____/______ ____(_)_______
6+
# _ / __ __ ___/__ / _ __ / _ / __ _ __ `/__ / __ __ \
7+
# / /_/ / _ / _ / / /_/ / / /_/ / / /_/ / _ / _ / / /
8+
# \____/ /_/ /_/ \_,__/ \____/ \__,_/ /_/ /_/ /_/
9+
#
10+
# Version: 3.1.1c.12072011
11+
#
12+
13+
#
14+
# Grid command line loader.
15+
#
16+
17+
#
18+
# Check JAVA_HOME.
19+
#
20+
if [ "$JAVA_HOME" = "" ]; then
21+
echo $0", ERROR: JAVA_HOME environment variable is not found."
22+
echo $0", ERROR: Please create JAVA_HOME variable pointing to location of JDK 1.6 or JDK 1.7."
23+
echo $0", ERROR: You can also download latest JDK at: http://java.sun.com/getjava"
24+
25+
exit 1
26+
fi
27+
28+
#
29+
# Check JDK.
30+
#
31+
if [ ! -e "$JAVA_HOME/bin/java" ]; then
32+
echo $0", ERROR: The JAVA is not found in $JAVA_HOME."
33+
echo $0", ERROR: Please modify your script so that JAVA_HOME would point"
34+
echo $0", ERROR: to valid location of Java installation."
35+
36+
exit 1
37+
fi
38+
39+
JAVA_VER=`${JAVA_HOME}/bin/java -version 2>&1 | grep -E "1\.[67]\."`
40+
41+
if [ "$JAVA_VER" == "" ]; then
42+
echo $0", ERROR: The version of JAVA installed in $JAVA_HOME is incorrect."
43+
echo $0", ERROR: Please install JDK 1.6 or 1.7."
44+
echo $0", ERROR: You can also download latest JDK at: http://java.sun.com/getjava"
45+
46+
exit 1
47+
fi
48+
49+
#
50+
# Set property JAR name during the Ant build.
51+
#
52+
ANT_AUGMENTED_GGJAR=gridgain-3.1.1c.jar
53+
54+
osname=`uname`
55+
56+
#
57+
# Set GRIDGAIN_HOME, if needed.
58+
#
59+
if [ "${GRIDGAIN_HOME}" = "" ]; then
60+
echo $0", WARN: GRIDGAIN_HOME environment variable is not found."
61+
62+
case $osname in
63+
Darwin*)
64+
export GRIDGAIN_HOME=$(dirname $(dirname $(cd ${0%/*} && echo $PWD/${0##*/})))
65+
;;
66+
*)
67+
export GRIDGAIN_HOME="$(dirname $(readlink -f $0))"/..
68+
;;
69+
esac
70+
fi
71+
72+
#
73+
# Check GRIDGAIN_HOME
74+
#
75+
if [ ! -d "${GRIDGAIN_HOME}/config" ]; then
76+
echo $0", ERROR: GRIDGAIN_HOME environment variable is not found or is not valid."
77+
echo $0", ERROR: GRIDGAIN_HOME variable must point to GridGain installation folder."
78+
79+
exit 1
80+
fi
81+
82+
#
83+
# Set GRIDGAIN_LIBS.
84+
#
85+
. "${GRIDGAIN_HOME}"/bin/setenv.sh
86+
87+
#
88+
# OS specific support.
89+
#
90+
SEPARATOR=":";
91+
92+
case $osname in
93+
CYGWIN*)
94+
SEPARATOR=";"
95+
;;
96+
esac
97+
98+
CP="${GRIDGAIN_LIBS}${SEPARATOR}${GRIDGAIN_HOME}/${ANT_AUGMENTED_GGJAR}"
99+
100+
#
101+
# Parse command line parameters.
102+
#
103+
CONFIG="${GRIDGAIN_HOME}/config/junit/junit-spring.xml"
104+
105+
QUIET="-DGRIDGAIN_QUIET=true"
106+
107+
while [ $# -gt 0 ]
108+
do
109+
case "$1" in
110+
-v)
111+
QUIET="-DGRIDGAIN_QUIET=false"
112+
;;
113+
*)
114+
CONFIG="$1"
115+
;;
116+
esac
117+
118+
shift
119+
done
120+
121+
#
122+
# Find available port for JMX
123+
#
124+
JMX_PORT=`java -cp ${GRIDGAIN_HOME}/${ANT_AUGMENTED_GGJAR} org.gridgain.grid.tools.portscanner.GridPortScanner`
125+
126+
127+
# This variable defines necessary parameters for JMX
128+
# monitoring and management.
129+
# ADD YOUR ADDITIONAL PARAMETERS/OPTIONS HERE
130+
#
131+
JMX_MON=-Dcom.sun.management.jmxremote
132+
133+
#
134+
# This enables remote unsecure access to JConsole or VisualVM.
135+
# ADD YOUR ADDITIONAL PARAMETERS/OPTIONS HERE
136+
#
137+
JMX_MON="${JMX_MON} -Dcom.sun.management.jmxremote.port=${JMX_PORT} -Dcom.sun.management.jmxremote.authenticate=false -Dcom.sun.management.jmxremote.ssl=false"
138+
139+
#
140+
# JVM options. See http://java.sun.com/javase/technologies/hotspot/vmoptions.jsp
141+
# for more details. Note that default settings use parallel GC.
142+
#
143+
# ADD YOUR ADDITIONAL PARAMETERS/OPTIONS HERE
144+
#
145+
JVM_OPTS="-ea -XX:MaxPermSize=128m -XX:+UseParNewGC -XX:MaxNewSize=32m -XX:NewSize=32m -Xms256m -Xmx512m -XX:SurvivorRatio=128 -XX:MaxTenuringThreshold=0 -XX:+UseTLAB -XX:+UseConcMarkSweepGC -XX:+CMSClassUnloadingEnabled"
146+
147+
#
148+
# If using NewRelic for monitoring - uncomment the following.
149+
# Make sure to sing up at www.newrelic.com and put your custom newrelic.yml
150+
# file that you receive after registration into ${GRIDGAIN_HOME}/libs folder.
151+
#
152+
# File newrelic.jar is already shipped with GridGain but you can always
153+
# update it to the latest in ${GRIDGAIN_HOME}/libs folder.
154+
#
155+
# Note also that since NewRelic is using java agent it will
156+
# conflict with AspectJ AOP that is also using java agent.
157+
#
158+
# JVM_OPTS="${JVM_OPTS} -javaagent:${GRIDGAIN_HOME}/libs/newrelic.jar"
159+
160+
# Remote debugging (JPDA).
161+
# Uncomment and change if remote debugging is required.
162+
# JVM_OPTS="-Xdebug -Xrunjdwp:transport=dt_socket,address=8787,server=y,suspend=n ${JVM_OPTS}"
163+
164+
"${JAVA_HOME}/bin/java" ${JVM_OPTS} ${JMX_MON} ${QUIET} -DGRIDGAIN_SCRIPT -DGRIDGAIN_HOME="${GRIDGAIN_HOME}" -DGRIDGAIN_PROG_NAME="$0" -cp "${CP}" org.gridgain.grid.loaders.cmdline.GridCommandLineLoader "${CONFIG}"

Diff for: bin/ggscalar.bat

+77
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,77 @@
1+
::
2+
:: Copyright (C) GridGain Systems, Inc. Licensed under GPLv3, http://www.gnu.org/licenses/gpl.html
3+
:: _________ _____ __________________ _____
4+
:: __ ____/___________(_)______ /__ ____/______ ____(_)_______
5+
:: _ / __ __ ___/__ / _ __ / _ / __ _ __ `/__ / __ __ \
6+
:: / /_/ / _ / _ / / /_/ / / /_/ / / /_/ / _ / _ / / /
7+
:: \____/ /_/ /_/ \_,__/ \____/ \__,_/ /_/ /_/ /_/
8+
::
9+
:: Version: 3.1.1c.12072011
10+
::
11+
12+
::
13+
:: Starts Scala REPL with GridGain on the classpath.
14+
:: Note that 'scala' must be on PATH.
15+
::
16+
17+
@echo off
18+
19+
if "%OS%" == "Windows_NT" setlocal
20+
21+
:: Check Scala
22+
for %%A in (scala) do if not "%%~$PATH:A" == "" goto checkGridGainHome1
23+
echo %0, ERROR: 'scala' must be on PATH.
24+
goto error_finish
25+
26+
:: Check GRIDGAIN_HOME.
27+
:checkGridGainHome1
28+
if not "%GRIDGAIN_HOME%" == "" goto checkGridGainHome2
29+
echo %0, WARN: GRIDGAIN_HOME environment variable is not found.
30+
pushd "%~dp0"/..
31+
set GRIDGAIN_HOME=%CD%
32+
popd
33+
34+
:checkGridGainHome2
35+
if exist "%GRIDGAIN_HOME%\config" goto run
36+
echo %0, ERROR: GRIDGAIN_HOME environment variable is not valid installation home.
37+
echo %0, ERROR: GRIDGAIN_HOME variable must point to GridGain installation folder.
38+
goto error_finish
39+
40+
:run
41+
42+
:: This is Ant-augmented variable.
43+
set ANT_AUGMENTED_GGJAR=gridgain-3.1.1c.jar
44+
45+
::
46+
:: Set GRIDGAIN_LIBS
47+
::
48+
call "%GRIDGAIN_HOME%\bin\setenv.bat"
49+
50+
set CP=%GRIDGAIN_LIBS%;%GRIDGAIN_HOME%\%ANT_AUGMENTED_GGJAR%
51+
52+
::
53+
:: Process 'verbose' mode and optional Spring configuration file.
54+
::
55+
if [%1] == [-v] (
56+
set QUIET=-DGRIDGAIN_QUIET=false
57+
) else (
58+
set QUIET=-DGRIDGAIN_QUIET=true
59+
)
60+
61+
::
62+
:: Set program name.
63+
::
64+
set PROG_NAME=gridgain.bat
65+
if "%OS%" == "Windows_NT" set PROG_NAME=%~nx0%
66+
67+
::
68+
:: Set Java options.
69+
::
70+
set JAVA_OPTS=-Xss2m -DGRIDGAIN_SCRIPT -DGRIDGAIN_HOME="%GRIDGAIN_HOME%" -DGRIDGAIN_PROG_NAME="%PROG_NAME%"
71+
72+
::
73+
:: Start REPL.
74+
::
75+
scala %QUIET% -cp "%CP%" -i %GRIDGAIN_HOME%\bin\scalar.scala
76+
77+
:error_finish

0 commit comments

Comments
 (0)