# This script describes how to run the entire set of
# timings we want in our chart.
#
# 1. Need Apache running with ssh.
/etc/init.d/httpd stop
/etc/init.d/httpd start
# Sockets 80 (plain), 443 (SSL)

# 2. Need all four combinations of {simple,Jetty} and {plain,SSL} server
# Encoding:
# 8{1,2}{43,80}
#   1 = simple
#	2 = Jetty
# 		 80 = plain
#		 43 = SSL
java servlet.SSLServerConfig -fourServers=true

# 3. Need a Snowflake server.
# Socket 8041
java jp.SecureServerConfig '(hash md5 |7G72B2o2Ghj/qlMRx6Vifg==|)' -root /usr/local/apache/htdocs

# Now run all of the tests.
# plain sockets

# apache, simple, Jetty servers
java timingexp.HttpExp -port=80 \
	-numberOfConnections=10 -protocol 1.0 -uri=/files/timing-file-100.txt
java timingexp.HttpExp -port=80 \
	-numberOfConnections=20 -protocol 1.0 -uri=/files/timing-file-100.txt
java timingexp.HttpExp -port=80 \
	-numberOfConnections=30 -protocol 1.0 -uri=/files/timing-file-100.txt
# Snowflake
java timingexp.HttpExp -useSnowflake=true -port=8041 \
	-numberOfConnections=10 -uri=/files/timing-file-100.txt
