Showing off straightaway

Within the Hazelcast JAR file, there is a very useful ConsoleApp utility class (this class was previously known as TestApp, but the name was a little deceptive as it can be used for operations beyond just testing). It is great in that it provides a simple text console for easy access to the distributed collections.

To fire this up, we need to run this class using the Hazelcast JAR file as the classpath. Alternatively, we can also use the console scripts that were provided in the demo/ directory.

$ java -cp hazelcast-3.5.jar com.hazelcast.console.ConsoleApp

This should bring up a fair amount of verbose logging, but a reassuring section to look for so that we can see that a cluster has been formed, is the following output: ...

Get Getting Started with Hazelcast - Second Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.