next up previous
Next: Constants Up: Getting started Previous: Compiling

Executing

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:

  1. jist <simulation>
    Local execution of a simulation. <simulation> is some class in the classpath
  2. jist -c <properties> <simulation>
    Run JiST with specific properties file. e.g.: src/jist.properties and src/debug.properties.
  3. jist -nocache <simulation>
    Disable rewriter caching. The JiST engine caches rewritten simulation class files to improve startup times.
  4. jist -bsh <script>
    jist -jpy <script>
    Use a script to configure a simulation. These invoke the BeanShell and Jython scripting engines, respectively.
  5. 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>.
  6. 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.
  7. jist -S -r host:port
    Start a JiST processing server with a remote job queue.
  8. 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.
  9. jist jist.swans.Main <driver>
    Or, swans <driver>
    Runs SWANS simulation. The SWANS command-line syntax can be viewed by running: swans -h.
  10. 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 up previous
Next: Constants Up: Getting started Previous: Compiling
2006-01-18