This project has retired. For details please refer to its Attic page.
Geode EntityStore Starter Template for Bootstrap
Overview
javax.json serialization
javax.xml serialization
MessagePack serialization
Memory EntityStore
File EntityStore
Geode EntityStore
Hazelcast EntityStore
JClouds EntityStore
JDBM EntityStore
LevelDB EntityStore
MongoDB EntityStore
Preferences EntityStore
Redis EntityStore
Riak EntityStore
SQL EntityStore
Ehcache Cache
Memcache Cache
ElasticSearch Index/Query
OpenRDF Index/Query
Apache Solr Index/Query
SQL Index/Query
Codahale Metrics
Migration
Reindexer

Geode EntityStore

code

docs

tests

EntityStore service backed by the Apache Geode data grid.

Table 53. Artifact

Group IDArtifact IDVersion

org.apache.polygene.extensions

org.apache.polygene.extension.entitystore-geode

0


Assembly

Assembly is done using the provided Assembler:

public void assemble( ModuleAssembly module )
    throws AssemblyException
{
  [...snip...]

    new GeodeEntityStoreAssembler().withConfig( config, Visibility.layer ).assemble( module );
}

Configuration

Here are the configuration properties for the Geode EntityStore:

public interface GeodeConfiguration
        extends ConfigurationComposite
{
    /**
     * Geode Topology.
     * Defaults to {@literal EMBEDDED}, see {@link GeodeTopology}.
     *
     * @return Geode Topology
     */
    @UseDefaults
    Property<GeodeTopology> topology();

    /**
     * Geode Cache Name.
     *
     * @return Geode Cache Name
     */
    @UseDefaults( "polygene:cache" )
    Property<String> cacheName();

    /**
     * Cache properties path, loaded from the classpath.
     *
     * @return Cache properties path
     */
    @Optional
    Property<String> cachePropertiesPath();

    /**
     * Cache Region Shortcut.
     *
     * In {@literal EMBEDDED} {@link #topology()}, defaults to  {@literal LOCAL},
     * see {@link org.apache.geode.cache.RegionShortcut}.
     *
     * In {@literal CLIENT_SERVER} {@link #topology()}, defaults to {@literal PROXY},
     * see {@link org.apache.geode.cache.client.ClientRegionShortcut}.
     *
     * @return Cache Region Shortcut
     */
    @Optional
    Property<String> regionShortcut();

    /**
     * Geode Region Name.
     *
     * Region names may only be alphanumeric and may contain hyphens or underscores.
     *
     * @return Geode Region Name
     */
    @UseDefaults( "polygene-entitystore-region" )
    Property<String> regionName();
}