Skip to content

Latest commit

 

History

History
27 lines (17 loc) · 1.01 KB

developer.md

File metadata and controls

27 lines (17 loc) · 1.01 KB

Build and setup IDE

The Dongting project outputs two jars for users: dongting-client.jar requires Java 8, and dongting-server.jar requires Java 11. However, compiling the entire project requires Java 17 because the benchmark module requires Java 17.

Importing the entire project into the IDE may lead to compilation errors because the test code depends on some files generated by the protobuf compiler. If your IDE does not automatically set these up, follow the steps below to configure them manually. At first, run the following command to generate the source files:

mvn clean compile test-compile

Then add the source file path generated by the plugin to the sources in the IDE. For example:

IDEA configuration

run demos

demos directory contains some examples of using dongting, they require no configuration and can be run directly by the main method.

Run simple benchmark

Run main method RaftBenchmark, that's all.

There are some parameters you can set in source code, see comments.