The examples in this project are showcase features of GemFire and demonstrate their basic usage. For details an all GemFire featues, see our documentation
Your client code must link against the same or older version (ignoring patch versions) of VMware GemFire as the VMware GemFire server it will connect to.
For compiling against older versions of GemFire you can add the version like this -PgemfireVersion=10.0.+ to your ./gradlew command to specify which VMware GemFire client libraries to link.
In order to execute the examples in this project, follow these steps:
- Download the version of GemFire that you want to use as the server from Tanzu Network
- Unpack the GemFire TAR file and set your
GEMFIRE_HOMEto point at it.GEMFIRE_HOMEwill be the top level directory inside the extracted GemFire. If you extracted in /tmp/downloads, GEMFIRE_HOME=/tmp/downloads/vmware-gemfire-10.0.0 - Sign up for the GemFire Maven repo and follow the instructions there to set your authentication credentials for the repo in Gradle
- You can now run an example with the following gradle targets:
build- compiles the example and runs unit testsstart- initializes the VMware GemFire clusterrun- runs the example Applicationstop- shuts down the clusterrunAll- invokes start, run, stop
The commands you need to run a specific example will be given in the README.md file. Sample
usage:
$ ./gradlew :replicated:start
$ ./gradlew :replicated:run
$ ./gradlew :replicated:stop
The following sections call out ready-made examples. You may want to start your journey with the VMware GemFire Documentation.
- Replicated Region
- Partitioned Region
- Put Multiple Values at Once
- Functions
- Persistence
- OQL (Querying)