A simple distributed sports book example, to demonstrate Hazlecast Jet.
This application is a "sequel" to BetLeopard, which previously showed the same ideas as expressed in Java 8 streams and Apache Spark (accessed via a Hazelcast API and bridge).
To make best use of JetLeopard, users should ideally be familiar with BetLeopard and the domain model that was introduced there. Basic details are also covered in the white paper.
JetLeopard is self-contained, apart from its Maven dependencies.
To build and package the application, run:
mvn clean package
After building the application, run the application with:
mvn exec:java
Included in this demo is a white paper.
The package structure is very straightforward:
- com.jetleopard - The jetleopard core classes
- com.betleopard - Shaded core classes from BetLeopard
- com.betleopard.domain - Shaded domain classes from BetLeopard
- com.betleopard.hazelcast - Shaded Hazelcast helper classes from BetLeopard
- com.betleopard.simple - Shaded Java 8 Streams helper classes from BetLeopard
Documentation is included in the distribution, but to regenerate the docs, do the following. From the src/main/java directory, run this:
javadoc -D ../../../doc -subpackages com.jetleopard com.jetleopard