Passing parameters

slandelle edited this page Apr 4, 2012 · 3 revisions

One might want to pass parameters from the command line to the Simulation, for example the number of users, the duration of the ramp...

This can be done very easily with additional JAVA_OPTIONS in the launch script:

JAVA_OPTS="-Dusers=500 -Dramp=3600"

val nbUsers = Integer.getInteger("users", 1)
val myRamp  = Integer.getInteger("ramp", 0)