Examples

Examples that use GemFire clients.
Sort
Category
38 Results for
Lucene Indexes
In this example, two VMware GemFire servers host a single partitioned region with entries that represent employee information. The example indexes the first and last names of employees. This example ...
Lucene Spatial Indexing
These examples demonstrate how to use GemFire's LuceneSerializer and LuceneQueryProvider APIs to customize how GemFire data is stored and indexed in Lucene. All the examples are run from Example.java...
OQL Indexing
This example demonstrates an index for OQL queries on a VMware GemFire region. A region can contain objects of arbitrary complexity, including objects that contain other objects. The values of a regi...
Partitioned Regions
This example demonstrates the basic property of partitioning where the data entries are distributed across all VMware GemFire servers that host a region. The distribution is like database sharding, e...
Overflow to Disk
In this example, a VMware GemFire server hosts a partitioned region that stores strings. The example shows entry values being overflowed to disk and removed from memory. This examples demonstrates ho...
Persistent Regions
This example demonstrates VMware GemFire persistent regions. The data for a region resides in memory in the JVM for the server. When a region is persistent, the data for that region is also preserved...
Publish Micrometer Metrics
This example demonstrates publishing metrics from GemFire to a monitoring system comprised of Prometheus and Grafana. Steps to Run and Validate the Example From the gemfire-examples/micrometerMetrics...
Put Multiple Values At Once
This is example demonstrates putting a map of values into a VMware GemFire region, checking the size, and retrieving the values. This example assumes you have installed JDK11 and GemFire. Steps From ...
Region Colocation
This is a simple example that illustrates how to colocate the data of two VMware GemFire regions. By default, GemFire selects the data locations for a partitioned region independent of the data locat...
GemFire Transactions
This example demonstrates the use of VMware GemFire transactions to protect consistency during concurrent access and modification of data. This is a simple example that demonstrates the use of transa...
Replication Between Clusters
This example demonstrates GemFire support for asynchronous replication between clusters. WAN replication allows remote GemFire clusters to automatically keep their region data consistent through the ...
Replication Between Clusters With Delta Objects
This example demonstrates GemFire support for asynchronous replication between clusters using Delta objects. This example demonstrates GemFire support for asynchronous WAN replication between cluster...
Using A Cache Listener
In this example, a VMware GemFire cache listener is installed and notified of each entry creation and then adds it to a queue of events. This is a simple example that demonstrates the use of a cache ...
Using A Cache Loader
This is a simple example that demonstrates loading values using a VMware GemFire CacheLoader. This is a simple example that demonstrates loading values using a CacheLoader. Invoking Region.get() caus...
Using A Cache Writer
In this example, a VMware GemFire cache writer is installed that vets the creation events for the region for proper formatting of Social Security numbers. This is a simple example that demonstrates t...
GemFire Image Search
An example using the GemFire Vector Database extension to perform an image search. An image search webapp that uses VMware GemFire and the VMware GemFire Vector Database extension. Download the exten...
Session State Management with Tomcat
This example demonstrates how to set-up and use VMware GemFire's Session Management Module for Tomcat. This example assumes you have GemFire and Java installed. It also assumes you have local copy of...
Replicated Regions
This is a simple example that demonstrates putting values into a VMware GemFire replicated region, checking the size, and retrieving the values. This example assumes you have installed JDK11 and GemF...