Skip to content
Data > Feed Handlers



  1. Docker

  2. JDK 17

Getting Started with Deephaven

  1. Install sample python-example containers from Deephaven from Quick start Install Deephaven

    curl -O
    docker-compose* pull
    docker-compose* up
  2. If you run into errors with the grpc container, downgrade the containers in the "docker-compose.yml" file to 0.16.1

  3. Go to http://localhost:10000/ide/ on the browser

  4. Execute the following commands in the deephaven ide

    from deephaven import time_table
    sample = time_table('00:00:02')

This will create a ticking table that will insert a new timestamp record every 2 seconds.

Installing the feedhandler plugin to AMI

  1. Place DeephavenFH.jar and all other jar files in the dependencies directory under /amione/lib/

  2. Copy the properties from the file to your own

  3. For JDK17 compatibility, use the attached file or add the following parameters to the java launch command

    --add-opens java.base/java.lang=ALL-UNNAMED --add-opens java.base/java.util=ALL-UNNAMED --add-opens java.base/java.text=ALL-UNNAMED --add-opens java.base/ --add-opens --add-opens java.base/ 
  4. Add the following to the java launch parameters to the file as well

  5. Launch AMI

Configuring the feedhandler

There are 3 properties that can be configured from the file:

  1. ami.relay.fh.deephaven.props.url - subscription source url

  2. ami.relay.fh.deephaven.props.topics - tables to be subscribed to (delimited by commas)

  3. ami.relay.fh.deephaven.props.messagesize - (optional) maximum size of messages from the source. Default is 1000000.

For example, to subscribe to a localhost deephaven server with tables Sample1 & Sample2 with a maximum message size of 2000000: