Next: Constants
Up: Getting started
Previous: Compiling
Running JiST is a matter of executing a simulation within JiST within Java.
The jist -h option will provide syntax help. We list some of the
standard uses:
- jist <simulation>
Local execution of a simulation. <simulation> is some class in the
classpath
- jist -c <properties> <simulation>
Run JiST with specific properties file. e.g.: src/jist.properties
and src/debug.properties.
- jist -nocache <simulation>
Disable rewriter caching. The JiST engine caches rewritten simulation class
files to improve startup times.
- jist -bsh <script>
jist -jpy <script>
Use a script to configure a simulation. These invoke the BeanShell and
Jython scripting engines, respectively.
- jist -S
Start a JiST processing server with a local job queue. Server will listen on
the default JiST port (3000), and process jobs in FIFO order. You can
specify an alternative port with -p <port>.
- jist -S -q
Start a job queue server. This server will listen for incoming simulation
jobs, but does not perform processing. JiST processing servers will connect
and dequeue jobs. The default port can be changed as above.
- jist -S -r host:port
Start a JiST processing server with a remote job queue.
- jist -r host:port <simulation>
Enqueue a simulation at a job queue. The JiST client will enqueue the
simulation and wait for processing to complete. The client will provide the
server with all the classes that it needs and will receive redirected output
and error streams.
- jist jist.swans.Main <driver>
Or, swans <driver>
Runs SWANS simulation. The SWANS command-line syntax can be viewed by
running: swans -h.
- Using the proxy server to connect clients and servers through NAT boxes
and firewalls: First, run the ProxyPoint server somewhere on the Internet:
java jist.runtime.ProxyPoint.
Then, use the -x switch on clients, servers and the server queue.
Next: Constants
Up: Getting started
Previous: Compiling
2006-01-18