Child pages
  • Examples

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Scripts to run the examples are located in the bin directory of the binary distribution. The scripts require the JAVA_HOME environment variable to set to the location of a valid Java installation. To see a list of options use the -? option.

Performance Runner

The performance runner decodes a file containing fast-encoded data using the given templates. The results are given in total decoding time as well as average time it takes to decode a message. It is recommended to set the repeat to at least 3 as the first run is slower due to class loading.

Options

option

long

description

-?

--help

Displays this message.

-c

--continuous

Keep repeating the test until the process is killed

-d

--data <arg>

FAST Encoded data

-e

--error

Show stacktrace information

<ac:structured-macro ac:name="unmigrated-wiki-markup" ac:schema-version="1" ac:macro-id="fae96070-04df-4a19-9125-e0f1434058b7"><ac:plain-text-body><![CDATA[

-f

--format <arg>

Data format [hex|binary] default is binary

]]></ac:plain-text-body></ac:structured-macro>

-n

--ns

Enables namespace awareness

-p

--preload

Preload data into memory instead of decoding directly from file

-r

--repeat <arg>

Re process data file X number of times

-t

--template <arg>

Message Template definition file

Use

To run the performance runner try:

perf.bat -t D:\data\templates.xml -d D:\data\data.fast -p -r 3

Hexadecimal format

By default the format of the FAST data file is expected to be binary. There is also support for files encoded using hexadecimal byte values. Use the "-f hex" option to use this format.

Message Consumer

The message consumer tool is used to test OpenFAST compatibility with a given data provider's FAST stream.

Options

options

long

description

-?

--help

Displays this message

-e

--error

Show stacktrace information

-h

--host <arg>

The host name of the server (or group name for multicast)

-m

--template <arg>

Message template definition file

-p

--port <arg>

Port to connect to

<ac:structured-macro ac:name="unmigrated-wiki-markup" ac:schema-version="1" ac:macro-id="01d13749-a0a8-4baa-8ae0-831d288404d1"><ac:plain-text-body><![CDATA[

-t

--protocol <arg>

Protocol [tcp|udp] defaults to tcp

]]></ac:plain-text-body></ac:structured-macro>

Use

TCP Connection

consumer.bat -h localhost -p 2001 -m templates.xml

UDP Connection

consumer.bat -t udp -h 224.0.0.1 -p 30000 -m templates.xml

XML Conversion Tools

The XML Conversion utilities are a proof of concept implementation of the proposed FAST extension Map operator. The Map operator is used to compress XML element names and attribute names.

Options

The XML Conversion tools simply takes an input file and output file.

Use

Convert XML to FAST

xml2fast.bat data.xml data.fast

Convert FAST to XML

fast2xml.bat data.fast data.xml