高效可靠的单播和组播传输协议:Aeron

jopen 10年前

Aeron是一个高效可靠的单播和组播传输协议。

Directory Structure

Client API

aeron-client

Samples

aeron-samples

Media Driver

aeron-driver

Common Classes/Methods

aeron-common

Build

Java 构建

You require the following to build Aeron:

You must first build and install Agrona into the local maven repository

$ ./gradlew

After Agrona is compiled and installed, then you can build Aeron.

Full clean and build of all modules

$ ./gradlew

C++ 构建

You require the following to build Aeron with C++:

  • 2.8 or higher of CMake
  • C++11 supported compiler for the supported platform

Full clean and build of all modules

$ cd cppbuild  $ ./cppbuild

运行示例

Start up a media driver

$ java -cp aeron-samples/build/libs/samples.jar uk.co.real_logic.aeron.driver.MediaDriver

You can run the BasicSubscriber from a command line

$ java -cp aeron-samples/build/libs/samples.jar uk.co.real_logic.aeron.samples.BasicSubscriber

You can run the BasicPublisher from a command line

$ java -cp aeron-samples/build/libs/samples.jar uk.co.real_logic.aeron.samples.BasicPublisher

You can run the AeronStat utility to read system counters from a command line

$ java -cp aeron-samples/build/libs/samples.jar uk.co.real_logic.aeron.samples.AeronStat

项目主页:http://www.open-open.com/lib/view/home/1416554302398