Running the Demo Feed Handler from the Command Line

Run the demo feed handler from the command line.

The demo feed handler accepts command line parameters specifying the comma-delimited message file, number of messages to send, and maximum messages to send per second.

Note:

Although RAP includes STOCK_QUOTE.csv that you can use as a test message file for demo feed handler, any .csv file that contains Stock Quote messages will work.

  1. (Optional) Modify the demofeedhandler.sh script to start the demo feed handler with other settings.
  2. Run the demo feed handler from the command line using:
    demofeedhandler -m messageFile -n numMessages -s maximum_messages_per_second
    • Include the full path and file name of the demo data file as the messageFile argument.
    • Use a positive integer (any number from 1 to over 4 billion) as the numMessages argument to process a specific number of messages. Specify -1 to continuously loop through the file until you manually stop it.
    • -s maximum_messages_per_second is an optional switch that allows you to simulate various scenarios. If you do not include this parameter, messages are sent at the maximum possible speed.
    For example, to start the demo feed handler with unlimited messages, and a throttle of 300,000 messages per second, enter:
    demofeedhandler -m messageFile -n -1  -s 300000