Package org.astrogrid.samp.test
Class CalcStorm
java.lang.Object
org.astrogrid.samp.test.CalcStorm
Runs a load of Calculator clients at once all sending messages to each other.
Suitable for load testing or benchmarking a hub.
- Since:
- 22 Jul 2008
- Author:
- Mark Taylor
-
Constructor Summary
ConstructorsConstructorDescriptionCalcStorm
(ClientProfile profile, Random random, int nClient, int nQuery, Calculator.SendMode sendMode) Constructor. -
Method Summary
-
Constructor Details
-
CalcStorm
public CalcStorm(ClientProfile profile, Random random, int nClient, int nQuery, Calculator.SendMode sendMode) Constructor.- Parameters:
profile
- hub connection factoryrandom
- random number generatornClient
- number of clients to runnQuery
- number of messages each client will sendsendMode
- delivery pattern for messages
-
-
Method Details
-
run
Runs a lot of calculators at once all talking to each other.- Throws:
TestException
- if any tests failIOException
-
runMain
Does the work for the main method. Use -help flag for documentation.- Parameters:
args
- command-line arguments- Returns:
- 0 means success
- Throws:
IOException
-
main
Main method. Use -help flag.- Throws:
IOException
-