Exegy Adapter Sample

This sample demonstrates the use of the StreamBase Exegy input and monitoring adapters.

Importing This Sample into StreamBase Studio

In StreamBase Studio, import this sample with the following steps:

  • From the top menu, click FileLoad StreamBase Sample.

  • Select this sample from the Embedded Input Adapters list.

  • Click OK.

StreamBase Studio creates a project for this sample.

Sample Location

By default, the sample files are installed in:

On Windows

C:\Program Files\StreamBase Systems\StreamBase.n.m\sample\adapter\embedded\exegy\

On UNIX

/opt/streambase/sample/adapter/embedded/exegy/

When you load the sample into StreamBase Studio, Studio copies the sample project's files to your Studio workspace. StreamBase Systems recommends that you use the workspace copy of the sample, especially on UNIX, where you may not have write access to /opt/streambase. In the default installation, the path to this sample in your Studio workspace is:

UNIX:       
   ~/streambase-studio-n.m-workspace/sample_adapter_embedded_exegy
Windows XP:
   C:\Documents and Settings\username\My Documents\
      StreamBase Studio n.m Workspace\sample_embedded_exegy
Windows 7 and Windows Vista:
   C:\Users\username\Documents\StreamBase Studio n.m Workspace\
      sample_embedded_exegy

Running This Sample in StreamBase Studio

  1. In the Package Explorer, double-click ExegySample.sbapp.

  2. Select the adapter icon to open the Properties view for the adapter.

  3. Select the Connection Properties tab and enter values for Exegy Server Host, Login Username, and Login Password.

  4. Click the Run button. This opens the SB Test/Debug perspective and starts the application.

  5. In the Test/Debug Perspective, open the Application Output view. Observe a tuple on the Dictionary stream containing a list of tuples, one for each field in the Exegy dictionary.

  6. In the Manual Input view, select the Admin input stream, enter connect in the command field, and click Send Data. An additional tuple appears in the Application Output view from the Status stream indicating the adapter has connected to the Exegy server.

  7. In the Manual Input view, select the Subscribe input stream, enter subscribe, US:N:IBM, level_one, and equity in the command, symbol, subscriptionType, and containerType fields, respectively, and click Send Data. A tuple appears in the Application Output view from the Status stream indicating the subscription request has been processed, followed by a series of refresh (XC_MESSAGE_TYPE=0), quote (2), and trade (3) tuples on the Equities stream.

  8. In the Manual Input view, again in the Subscribe input stream, enter unsubscribe in the command field, leave the remaining fields unchanged, and click Send Data. A tuple appears in the Application Output view from the Status stream indicating the unsubscribe request has been processed, and the flow of tuples from the Equities stream stops.

  9. When done, press F9 or click the Stop Running Application button.