Contents
This sample demonstrates the use of the StreamBase Exegy input and monitoring adapters.
In StreamBase Studio, import this sample with the following steps:
-
From the top menu, click → .
-
Select this sample from the Embedded Input Adapters list.
-
Click OK.
StreamBase Studio creates a project for this sample.
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 Studion.mWorkspace\sample_embedded_exegy Windows 7 and Windows Vista: C:\Users\username\Documents\StreamBase Studion.mWorkspace\ sample_embedded_exegy
-
In the Package Explorer, double-click
ExegySample.sbapp. -
Select the adapter icon to open the Properties view for the adapter.
-
Select the Connection Properties tab and enter values for Exegy Server Host, Login Username, and Login Password.
-
Click the
Run button. This opens the SB
Test/Debug perspective and starts the application.
-
In the Test/Debug Perspective, open the Application Output view. Observe a tuple on the
Dictionarystream containing a list of tuples, one for each field in the Exegy dictionary. -
In the Manual Input view, select the
Admininput stream, enterconnectin thecommandfield, and click . An additional tuple appears in the Application Output view from theStatusstream indicating the adapter has connected to the Exegy server. -
In the Manual Input view, select the
Subscribeinput stream, entersubscribe,US:N:IBM,level_one, andequityin thecommand,symbol,subscriptionType, andcontainerTypefields, respectively, and click . A tuple appears in the Application Output view from theStatusstream indicating the subscription request has been processed, followed by a series of refresh (XC_MESSAGE_TYPE=0), quote (2), and trade (3) tuples on theEquitiesstream. -
In the Manual Input view, again in the
Subscribeinput stream, enterunsubscribein thecommandfield, leave the remaining fields unchanged, and click . A tuple appears in the Application Output view from theStatusstream indicating the unsubscribe request has been processed, and the flow of tuples from theEquitiesstream stops. -
When done, press F9 or click the
Stop Running Application button.
