高效可靠的单播和组播传输协议:Aeron
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:
- Latest stable Oracle JDK 8
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
本文由用户 jopen 自行上传分享,仅供网友学习交流。所有权归原作者,若您的权利被侵害,请联系管理员。
转载本站原创文章,请注明出处,并保留原始链接、图片水印。
本站是一个以用户分享为主的开源技术平台,欢迎各类分享!