Running the case study
Before running the code, let's build it using the following command:
mvn clean install
This will create a JAR file with the name as chapter13-0.0.1-SNAPSHOT-jar-with-dependencies.jar
in chapter13/target
directory.
Load Hazelcast
Execute the following command to load static values into Hazelcast:
java -cp target/chapter12-0.0.1-SNAPSHOT-jar-with-dependencies.jar com.book.simulator.HazelCastLoader <phone_number> vehicle-static-data 10000
The output will be as the following screenshot. Wait for the next step to be executed as the program reads only the latest entries from the Kafka topic:

Hazelcast UI will display one map: vehicleAlertInfo
, as shown in the following screenshot:

Generate Vehicle static value
Execute the following command to generate vehicle static values which contains the vehicle and its starting location as latitude and longitude. It pushes into Kafka:
java -cp target/chapter12-0.0.1-SNAPSHOT-jar-with-dependencies.jar com.book.simulator.VehicleStartPointGenerator...