Show TOC

Running the Subscriber ExampleLocate this document in the navigation structure

Use the RTView Display Viewer to run the provided subscriber example that comes with the RTView adapter.

Prerequisites

The cluster database stores configuration information. Ensure that the cluster is running, so that the adapter can interact with the projects on the cluster.

Procedure

  1. Set the user name and password properties in the ESPOPTIONS.ini file, located in the examples directory of your ESP installation, to the desired user name/password combination..
  2. Set the user name and password in the example environment:
    Operating System Step
    Windows
    1. Edit the set_example_env.bat script
    2. Set the ADAPTER_EXAMPLE_USERNAME and ADAPTER_EXAMPLE_PASSWORD variables to the desired user name/password combination.
    3. If SSL is enabled, set ADAPTER_EXAMPLE_CLUSTER_NODE_PROTOCOL to esps. If it is disabled, set it to esp.
    UNIX
    1. Edit the set_example_env.sh script
    2. Set the ADAPTER_EXAMPLE_USERNAME and ADAPTER_EXAMPLE_PASSWORD variables to the desired user name/password combination.
    3. If SSL is enabled, set ADAPTER_EXAMPLE_CLUSTER_NODE_PROTOCOL to esps. If it is disabled, set it to esp.
  3. Start the Event Stream Processor with the provided rtviewadapter.ccx model located in %RTVIEWADAPTER_HOME%\examples, and use port 19011.
    Operating System Step
    Windows
    1. Enter cd %RTVIEWADAPTER_HOME%\examples
    2. Start the example cluster: start_node.bat
    3. Add project to the cluster, and start it on the cluster: start_project.bat
    UNIX
    1. Enter cd $RTVIEWADAPTER_HOME/examples
    2. Start the example cluster: start_node.sh
    3. Start the project on the cluster: start_project.sh
    Note To use the start_node script with a remote host, set the STREAMING_HOSTNAME parameter in the cluster configuration file to the name of the host. This file is located at STREAMING_HOME/cluster/examples/example_cluster.xml.
  4. Start the RTView Display Viewer from the command line:
    Operating System Step
    Windows %RTVIEWADAPTER_HOME%\bin\start_viewer.bat %RTVIEWADAPTER_HOME%\examples subscriber.rtv
    UNIX $RTVIEWADAPTER_HOME/bin/start_viewer.sh $RTVIEWADAPTER_HOME/examples subscriber.rtv
    Note You can start the RTView Display Builder by replacing the start_viewer command with the start_builder command.
  5. Use the streamingconvert and streamingupload utilities to load input.xml data, convert XML data to stream data, and feed this data into target streams.
    Operating System Step
    Windows cd %RTVIEWADAPTER_HOME%\examples

    upload.bat

    UNIX cd $RTVIEWADAPTER_HOME/examples

    upload.sh

  6. (Optional) Verify that data is successfully loaded into streams.
    Operating System Step
    Windows cd %RTVIEWADAPTER_HOME%\examples

    subscribe.bat

    UNIX cd $RTVIEWADAPTER_HOME/examples

    subscribe.sh

  7. Observe the stream data that displays in the RTView Display Viewer.