Skip to content
Permalink
Browse files

Migrate SLAMD source from subversion to git

A commit of the SLAMD source code checked out from a subversion
repository.  I'm not going to try to port the subversion commit
history because it's actually not that extensive (SLAMD was
originally hosted in a CVS repository before it was migrated to
subversion, and the history was not preserved as part of that
migration), and because I'm excluding an obsolete "www" top-level
directory that was part of the java.net hosting infrastructure that
really isn't necessary here.

I haven't made any changes at all to the SLAMD source code.  The
code committed here is how it appeared after the last subversion
commit on March 20, 2010.  The dependencies are all horribly out
of date, and there are tons of build warnings when compiling on
Java 8.  However, it seems to run just fine (or at least, as well
as it did when I last stopped working on it).
  • Loading branch information...
dirmgr committed Mar 9, 2019
0 parents commit 5777f3e5d78ff03985af4e68670e649127339c59
Showing 703 changed files with 350,972 additions and 0 deletions.
@@ -0,0 +1,19 @@
This is the build environment for the SLAMD Distributed Load Generation Engine.
To build SLAMD, execute the build.sh script on UNIX systems, or the build.bat
batch file on Windows. If you get an error message that indicates that the
JAVA_HOME environment variable is not set, then you must define that variable
to reference the root of the Java 1.4 or higher JDK installation. On most UNIX
systems, this may be done like:

JAVA_HOME=/usr/java
export JAVA_HOME

On Windows, this may be done like:

set JAVA_HOME=C:\java

When the build is complete, the "build/classes" directory will contain all the
compiled class files, and the "build/package" directory will contain the
packaged SLAMD server and client archives. If JavaDoc documentation is to be
generated, then it will be under the "build/javadoc" directory.

10 VERSION
@@ -0,0 +1,10 @@
# The major, minor, and point version numbers, which should be integer values.
MAJOR_VERSION=2
MINOR_VERSION=0
POINT_VERSION=1

# The version qualifier string, which may be empty if no qualifier is needed,
# or it may be a string like "-alpha1" or "-update2". It should not contain
# any spaces or other characters that might not be suitable for use in a
# filename.
VERSION_QUALIFIER=
@@ -0,0 +1,49 @@
# Specify the address and port information for the SLAMD server.
SLAMD_ADDRESS=slamd.example.com
SLAMD_LISTEN_PORT=3000
SLAMD_MANAGER_PORT=3001
SLAMD_STAT_PORT=3003

# Optionally specify the client source address and client ID.
CLIENT_ADDRESS=
CLIENT_ID=

# Specify information about reporting statistics while jobs are in progress.
ENABLE_REAL_TIME_STATS=off
REAL_TIME_REPORT_INTERVAL=5

# Specify information about persisting stats on the client
ENABLE_STAT_PERSISTENCE=off
STAT_PERSISTENCE_DIRECTORY=statpersistence
STAT_PERSISTENCE_INTERVAL=300

# Information to use to authenticate to the SLAMD server.
AUTH_ID=
AUTH_PASS=

# Information about using SSL to communicate with the SLAMD server.
USE_SSL=off
BLIND_TRUST=on
SSL_KEY_STORE=~/.keystore
SSL_KEY_PASS=changeit
SSL_TRUST_STORE=~/.cacerts
SSL_TRUST_PASS=

# Indicate whether to aggregate data for all client threads to conserve space.
AGGREGATE_CLIENT_THREADS=on

# Indicate whether to operate in restricted mode.
RESTRICTED_MODE=off

# Indicate whether to disable the custom job class loader.
DISABLE_CUSTOM_CLASS_LOADER=on

# Provide settings specific to the client manager.
AUTO_CREATE_CLIENTS=0
MAX_CLIENTS=0

# Specify settings for the client output.
VERBOSE_MODE=off
QUIET_MODE=off
LOG_FILE=

@@ -0,0 +1,46 @@
@echo off

rem ###########################################################################
rem # Sun Public License
rem #
rem # The contents of this file are subject to the Sun Public License Version
rem # 1.0 (the "License"). You may not use this file except in compliance with
rem # the License. A copy of the License is available at http://www.sun.com/
rem #
rem # The Original Code is the SLAMD Distributed Load Generation Engine.
rem # The Initial Developer of the Original Code is Neil A. Wilson.
rem # Portions created by Neil A. Wilson are Copyright (C) 2004-2010.
rem # Some preexisting portions Copyright (C) 2002-2006 Sun Microsystems, Inc.
rem # All Rights Reserved.
rem #
rem # Contributor(s): Neil A. Wilson
rem ###########################################################################


rem Specify the arguments that should be provided to the JVM when running this
rem tool.
set JVM_ARGS=-server -Xms512m -Xmx512m


rem
rem You should not need to edit anything below this point.
rem


rem Get the directory containing this batch file.
set BATDIR=%~dp0


rem Prepare the Java environment.
call "%BATDIR%tools\set-java-home.bat"
if not %JAVA_HOME_ERROR% == 0 exit /B %JAVA_HOME_ERROR%


rem Invoke the tool.
set TOOL_CLASS=com.slamd.tools.StandaloneClient
"%JAVA_CMD%" %JVM_ARGS% %TOOL_CLASS% -c classes %*
goto end


:end

@@ -0,0 +1,50 @@
#!/bin/sh

###############################################################################
# Sun Public License
#
# The contents of this file are subject to the Sun Public License Version
# 1.0 (the "License"). You may not use this file except in compliance with
# the License. A copy of the License is available at http://www.sun.com/
#
# The Original Code is the SLAMD Distributed Load Generation Engine.
# The Initial Developer of the Original Code is Neil A. Wilson.
# Portions created by Neil A. Wilson are Copyright (C) 2004-2010.
# Some preexisting portions Copyright (C) 2002-2006 Sun Microsystems, Inc.
# All Rights Reserved.
#
# Contributor(s): Neil A. Wilson
###############################################################################


# Specify the arguments that should be provided to the JVM when running this
# tool.
JVM_ARGS="-server -Xms512m -Xmx512m"


#
# You should not need to edit anything below this line.
#


# Determine the user's current working directory and the path to this script.
USER_WORKING_DIRECTORY=`pwd`
cd "`dirname "${0}"`"
SCRIPT_DIR=`pwd`
cd "${USER_WORKING_DIRECTORY}"
export USER_WORKING_DIRECTORY SCRIPT_DIR


# Set up the appropriate Java environment.
export JAVA_HOME JVM_ARGS SCRIPT_DIR USER_WORKING_DIRECTORY
. "${SCRIPT_DIR}/tools/set-java-home.sh"
if test "${JAVA_HOME_ERROR}" -ne 0
then
exit 1
fi


# Invoke the tool.
TOOL_CLASS="com.slamd.tools.StandaloneClient"
exec "${JAVA_CMD}" ${JVM_ARGS} ${TOOL_CLASS} -c "${SCRIPT_DIR}/classes" "${@}"

@@ -0,0 +1,46 @@
@echo off

rem ###########################################################################
rem # Sun Public License
rem #
rem # The contents of this file are subject to the Sun Public License Version
rem # 1.0 (the "License"). You may not use this file except in compliance with
rem # the License. A copy of the License is available at http://www.sun.com/
rem #
rem # The Original Code is the SLAMD Distributed Load Generation Engine.
rem # The Initial Developer of the Original Code is Neil A. Wilson.
rem # Portions created by Neil A. Wilson are Copyright (C) 2004-2010.
rem # Some preexisting portions Copyright (C) 2002-2006 Sun Microsystems, Inc.
rem # All Rights Reserved.
rem #
rem # Contributor(s): Neil A. Wilson
rem ###########################################################################


rem Specify the arguments that should be provided to the JVM when running this
rem tool.
set JVM_ARGS=-server -Xms512m -Xmx512m


rem
rem You should not need to edit anything below this point.
rem


rem Get the directory containing this batch file.
set BATDIR=%~dp0


rem Prepare the Java environment.
call "%BATDIR%tools\set-java-home.bat"
if not %JAVA_HOME_ERROR% == 0 exit /B %JAVA_HOME_ERROR%


rem Invoke the tool.
set TOOL_CLASS=com.slamd.tools.CommandLineClient
"%JAVA_CMD%" %JVM_ARGS% %TOOL_CLASS% -f slamd_client.conf -c classes %*
goto end


:end

@@ -0,0 +1,51 @@
#!/bin/sh

###############################################################################
# Sun Public License
#
# The contents of this file are subject to the Sun Public License Version
# 1.0 (the "License"). You may not use this file except in compliance with
# the License. A copy of the License is available at http://www.sun.com/
#
# The Original Code is the SLAMD Distributed Load Generation Engine.
# The Initial Developer of the Original Code is Neil A. Wilson.
# Portions created by Neil A. Wilson are Copyright (C) 2004-2010.
# Some preexisting portions Copyright (C) 2002-2006 Sun Microsystems, Inc.
# All Rights Reserved.
#
# Contributor(s): Neil A. Wilson
###############################################################################


# Specify the arguments that should be provided to the JVM when running this
# tool.
JVM_ARGS="-server -Xms512m -Xmx512m"


#
# You should not need to edit anything below this line.
#


# Determine the user's current working directory and the path to this script.
USER_WORKING_DIRECTORY=`pwd`
cd `dirname "${0}"`
SCRIPT_DIR=`pwd`
cd "${USER_WORKING_DIRECTORY}"
export USER_WORKING_DIRECTORY SCRIPT_DIR


# Set up the appropriate Java environment.
export JAVA_HOME JVM_ARGS SCRIPT_DIR USER_WORKING_DIRECTORY
. "${SCRIPT_DIR}/tools/set-java-home.sh"
if test "${JAVA_HOME_ERROR}" -ne 0
then
exit 1
fi


# Invoke the tool.
TOOL_CLASS="com.slamd.tools.CommandLineClient"
exec "${JAVA_CMD}" ${JVM_ARGS} ${TOOL_CLASS} \
-f "${SCRIPT_DIR}/slamd_client.conf" -c "${SCRIPT_DIR}/classes" "${@}"

@@ -0,0 +1,51 @@
#!/bin/sh

###############################################################################
# Sun Public License
#
# The contents of this file are subject to the Sun Public License Version
# 1.0 (the "License"). You may not use this file except in compliance with
# the License. A copy of the License is available at http://www.sun.com/
#
# The Original Code is the SLAMD Distributed Load Generation Engine.
# The Initial Developer of the Original Code is Neil A. Wilson.
# Portions created by Neil A. Wilson are Copyright (C) 2004-2010.
# Some preexisting portions Copyright (C) 2002-2006 Sun Microsystems, Inc.
# All Rights Reserved.
#
# Contributor(s): Neil A. Wilson
###############################################################################


# Specify the arguments that should be provided to the JVM when running this
# tool.
JVM_ARGS="-server -Xms512m -Xmx512m"


#
# You should not need to edit anything below this line.
#


# Determine the user's current working directory and the path to this script.
USER_WORKING_DIRECTORY=`pwd`
cd `dirname "${0}"`
SCRIPT_DIR=`pwd`
cd "${USER_WORKING_DIRECTORY}"
export USER_WORKING_DIRECTORY SCRIPT_DIR


# Set up the appropriate Java environment.
export JAVA_HOME JVM_ARGS SCRIPT_DIR USER_WORKING_DIRECTORY
. "${SCRIPT_DIR}/tools/set-java-home.sh"
if test "${JAVA_HOME_ERROR}" -ne 0
then
exit 1
fi


# Invoke the tool.
TOOL_CLASS="com.slamd.tools.CommandLineClientManager"
exec "${JAVA_CMD}" ${JVM_ARGS} ${TOOL_CLASS} \
-c "${SCRIPT_DIR}/start_client.sh" \
-f "${SCRIPT_DIR}/slamd_client.conf" "${@}"
@@ -0,0 +1,46 @@
@echo off

rem ###########################################################################
rem # Sun Public License
rem #
rem # The contents of this file are subject to the Sun Public License Version
rem # 1.0 (the "License"). You may not use this file except in compliance with
rem # the License. A copy of the License is available at http://www.sun.com/
rem #
rem # The Original Code is the SLAMD Distributed Load Generation Engine.
rem # The Initial Developer of the Original Code is Neil A. Wilson.
rem # Portions created by Neil A. Wilson are Copyright (C) 2004-2010.
rem # Some preexisting portions Copyright (C) 2002-2006 Sun Microsystems, Inc.
rem # All Rights Reserved.
rem #
rem # Contributor(s): Neil A. Wilson
rem ###########################################################################


rem Specify the arguments that should be provided to the JVM when running this
rem tool.
set JVM_ARGS=-server -Xms512m -Xmx512m


rem
rem You should not need to edit anything below this point.
rem


rem Get the directory containing this batch file.
set BATDIR=%~dp0


rem Prepare the Java environment.
call "%BATDIR%tools\set-java-home.bat"
if not %JAVA_HOME_ERROR% == 0 exit /B %JAVA_HOME_ERROR%


rem Invoke the tool.
set TOOL_CLASS=com.slamd.tools.SwingClient
"%JAVA_CMD%" %JVM_ARGS% %TOOL_CLASS% -f slamd_client.conf -c classes %*
goto end


:end

Oops, something went wrong.

0 comments on commit 5777f3e

Please sign in to comment.
You can’t perform that action at this time.