Giter VIP home page Giter VIP logo

aas's Introduction

Example project for Aeron and SBE dependencies

About the project

  1. Automatically generates de-serializing handler
  2. CMake-generated build
  3. Demonstrates build-time SBE stubs generation
  4. Demonstrates generating media driver script for client tests (run manually, *nix systems only)
  5. Dependency cmake files do not contain configuration information
  6. Command-line build script is *nix-centered (no Windows script provided)
  7. Includes the upcoming ExternalProject extension
  8. Apache License 2.0

Prerequisites

Same prerequisites as for standalone Aeron, SBE, GoogleTest builds. Get recent tool chains (tested on OSX 10.11.6 and Ubuntu 16.04.1), JDK 8, CMake 3+.

Building

From a command line: run the ./build.sh script to build and ./test.sh to run the test. Use ./clean.sh to remove build-related directories. For in-Clion builds and tests, build the Build All target, and the install. Run the ./bin/media_driver.sh to start the built media driver and the aeron_and_sbe target for the example test.

See the short YouTube video for an example build arrangement.

Build structure

Dependencies are vendored in the dep directory, each brought in through an external project macro in accompanying cmake scripts. The root CMakeLists.txt calls all the macros and then includes directories for the make_handler and integration_tests executables.

The make_handler executable uses an inlined template and SBE protocol XML definition to generate a C++ incoming messages handler for an Aeron subscription. When called, the handler wraps incoming messages in proper SBE structures and calls message-type-specific intake handlers defined elsewhere.

The build of integration_tests runs the make_handler process to generate the handler. It also runs the sbe-tool which generates proper message codes alongside the handler.

The example intake functions in integration_tests_intakes.h header are specializations of the template which is not implemented itself. That way the compilation intentionally fails if a message type intake function is not implemented.


aas's People

Contributors

didenko avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.