This is a simple example that demonstrates putting a map of values into a region, checking the size, and retrieving the values.
This example assumes you have installed Java and Geode.
-
From the
geode-examples/putalldirectory, build the example and run unit tests.$ ../gradlew build -
Next start a locator, start a server, and create a region.
$ gfsh run --file=scripts/start.gfsh -
Run the example to put entries into the region.
$ ../gradlew run -
Shut down the system.
$ gfsh run --file=scripts/stop.gfsh