Altair® Panopticon

 

Creating AMPS Input Data Source

The AMPS connector allows connection to AMPS message bus on a real-time streaming basis. The connector allows Panopticon Streams to subscribe to the Native FIX and XML message support. The data format itself is arbitrary, and in turn the connection includes the message definition.

Steps:

1.     In the New Data Source page, select Input > AMPS in the Connector drop-down list.

 

2.     Enter the following information:

Property

Description

Host

AMPS host address.

Port

AMPS host port. Default is 9004.

User Id

The user Id that will be used to connect to the AMPS service.

Password

The password to connect to the AMPS service.

Topic

The topic or queue physical name.

Filter

The filter expression.

 

3.     Select the Protocol. This will specify the format of the headers:

·         Amps (default)

·         Fix

·         NvFix

·         XML

4.     Select the Message Type. This will specify the format of the data within the message:         

5.     Select from any of the following Subscription Modes:

·         Sow

·         SowAndSubscribe

·         SowAndDeltaSubscribe (default)

·         Subscribe

·         DeltaSubcribe

6.     Enter the Order By Statement in order to limit the returned data. For example:

/orderDate DESC

/custumerName ASC

7.     Enter any of the following Option/s for the selected Subscription Mode:

·         cancel

·         live

·         no_empties

·         null

·         no_sowkey

·         oof

·         pause

·         replace

·         resume

·         send_keys

·         timestamp

 

   NOTE

Leave the Options box blank if you selected the Subscribe subscription mode.

 

8.     Enter the Batch Size. This is the number of messages that will be sent at a time as results are returned. Default is 100.

9.     Enter the Timeout for the length of time to wait for the Server response. Default is 5000.

10.   Select either the period (.) or comma (,) as the Decimal Separator.

 

   NOTE

Prepend 'default:' for the elements falling under default namespace.

 

11.   Click  to the fetch the schema based on the connection details. This populates the list of columns with the data type found from inspecting the first ‘n’ rows of the input data source.

12.   You can also opt to click . This adds columns to the AMPS connection that will represent sections of the message.

13.   Provide the following information:

Property

Description

Name

The column name of the source schema.

Fix Tag/XPath/Json Path

The Fix Tag/XPath/Json Path of the source schema.

Type

The data type of the column. Can be a Text, Numeric, or Time

Date Format

The format when the data type is Time.

Filter

Defined parameters that can be used as filter. Only available for Fix, JSON, and XML message types.

Enabled

Determines whether the message field should be processed.

 

If Message Type is set to Fix or NvFix, the Add Column will display as:

If Message Type is set to XML, the Add column will display as:

If Message Type is set to JSON, the Add Column will display as:

To delete a column, check its  or all the column entries, check the topmost , then click .

14.   Define the Real-time Settings.

15.   Click . The new data source is added in the Data Sources list.