updated reference docs and build config for GF 7
This commit is contained in:
@@ -1,47 +1,76 @@
|
||||
<chapter xml:id="new-features" xmlns="http://docbook.org/ns/docbook" version="5.0">
|
||||
<title>New Features</title>
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<chapter version="5.0" xml:id="new-features"
|
||||
xmlns="http://docbook.org/ns/docbook"
|
||||
xmlns:ns6="http://www.w3.org/1999/xlink"
|
||||
xmlns:ns5="http://www.w3.org/1999/xhtml"
|
||||
xmlns:ns4="http://www.w3.org/2000/svg"
|
||||
xmlns:ns3="http://www.w3.org/1998/Math/MathML"
|
||||
xmlns:ns="http://docbook.org/ns/docbook">
|
||||
<title>New Features</title>
|
||||
|
||||
<note>
|
||||
As of the 1.2.0 release, this project, formerly known as Spring GemFire, has been renamed to Spring Data GemFire to reflect that
|
||||
it is now a component of the <ulink url="http://www.springsource.org/spring-data">Spring Data</ulink> project.
|
||||
</note>
|
||||
|
||||
<section id="new-in-1-2-0">
|
||||
<title>New in the 1.2.0 Release</title>
|
||||
<itemizedlist>
|
||||
<listitem><para>
|
||||
Full support for GemFire configuration via the <emphasis>gfe</emphasis> namespace. Now GemFire components may be configured completely without
|
||||
requiring a native cache.xml file.
|
||||
</para>
|
||||
</listitem>
|
||||
<listitem><para>
|
||||
WAN Gateway support for both GemFire 6.6.x. See <xref linkend="bootstrap:gateway"/>
|
||||
</para>
|
||||
</listitem>
|
||||
<listitem><para>
|
||||
Spring Data Repository support with a dedicated namespace, <emphasis>gfe-data</emphasis>. See <xref linkend="gemfire-repositories"/>
|
||||
</para>
|
||||
</listitem>
|
||||
<listitem><para>
|
||||
Namespace support for registering GemFire functions. See <xref linkend="bootstrap:function"/>
|
||||
</para>
|
||||
</listitem>
|
||||
<listitem>
|
||||
<para>
|
||||
A top level <literal><disk-store></literal> element has been added to the <emphasis>gfe</emphasis> namespace to allow sharing of persist stores among regions,
|
||||
and other components that support persistent backup. See <xref linkend="bootstrap-diskstore"/>
|
||||
<caution>The <literal><*-region></literal> elements no longer allow a nested <literal><disk-store></literal>
|
||||
</caution>
|
||||
</para>
|
||||
</listitem>
|
||||
<listitem><para>
|
||||
GemFire subregions are supported via nested <literal><*-region></literal> elements
|
||||
</para>
|
||||
</listitem>
|
||||
<listitem><para>
|
||||
A <literal><local-region></literal> element has been added to configure a local region
|
||||
</para>
|
||||
</listitem>
|
||||
</itemizedlist>
|
||||
</section>
|
||||
</chapter>
|
||||
<note>
|
||||
As of the 1.2.0 release, this project, formerly known as Spring GemFire, has been renamed to Spring Data GemFire to reflect that it is now a component of the
|
||||
|
||||
<ulink url="http://www.springsource.org/spring-data">Spring Data</ulink>
|
||||
|
||||
project.
|
||||
</note>
|
||||
|
||||
<section>
|
||||
<title>New in the 1.2.1 Release</title>
|
||||
|
||||
<itemizedlist>
|
||||
<listitem>
|
||||
<para>WAN Gateway Support for GemFire 7.0</para>
|
||||
</listitem>
|
||||
</itemizedlist>
|
||||
</section>
|
||||
|
||||
<section id="new-in-1-2-0">
|
||||
<title>New in the 1.2.0 Release</title>
|
||||
|
||||
<itemizedlist>
|
||||
<listitem>
|
||||
<para>Full support for GemFire configuration via the
|
||||
<emphasis>gfe</emphasis> namespace. Now GemFire components may be
|
||||
configured completely without requiring a native cache.xml
|
||||
file.</para>
|
||||
</listitem>
|
||||
|
||||
<listitem>
|
||||
<para>WAN Gateway support for GemFire 6.6.x. See <xref
|
||||
linkend="bootstrap:gateway"/></para>
|
||||
</listitem>
|
||||
|
||||
<listitem>
|
||||
<para>Spring Data Repository support with a dedicated namespace,
|
||||
<emphasis>gfe-data</emphasis>. See <xref
|
||||
linkend="gemfire-repositories"/></para>
|
||||
</listitem>
|
||||
|
||||
<listitem>
|
||||
<para>Namespace support for registering GemFire functions. See <xref
|
||||
linkend="bootstrap:function"/></para>
|
||||
</listitem>
|
||||
|
||||
<listitem>
|
||||
<para>A top level <literal><disk-store></literal> element has
|
||||
been added to the <emphasis>gfe</emphasis> namespace to allow sharing
|
||||
of persist stores among regions, and other components that support
|
||||
persistent backup. See <xref linkend="bootstrap-diskstore"/>
|
||||
<caution>The <literal><*-region></literal> elements no longer
|
||||
allow a nested <literal><disk-store></literal> </caution></para>
|
||||
</listitem>
|
||||
|
||||
<listitem>
|
||||
<para>GemFire subregions are supported via nested
|
||||
<literal><*-region></literal> elements</para>
|
||||
</listitem>
|
||||
|
||||
<listitem>
|
||||
<para>A <literal><local-region></literal> element has been added
|
||||
to configure a local region</para>
|
||||
</listitem>
|
||||
</itemizedlist>
|
||||
</section>
|
||||
</chapter>
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<section version="5.0" id="bootstrap:gateway"
|
||||
<section id="bootstrap:gateway" version="5.0"
|
||||
xmlns="http://docbook.org/ns/docbook"
|
||||
xmlns:xlink="http://www.w3.org/1999/xlink"
|
||||
xmlns:xi="http://www.w3.org/2001/XInclude"
|
||||
@@ -12,9 +12,77 @@
|
||||
<para>WAN gateways provide a way to synchronize GemFire distributed systems
|
||||
across geographic distributed areas. As of Release 1.2.0, Spring Data
|
||||
GemFire provides namespace support for configuring WAN gateways as
|
||||
illustrated in the following example:</para>
|
||||
illustrated in the following examples:</para>
|
||||
|
||||
<programlisting language="xml"><gfe:cache/>
|
||||
<section><title>WAN Configuration in GemFire 7.0</title>
|
||||
<para>
|
||||
GemFire 7.0 introduces new APIs for WAN configuration. While the original APIs provided
|
||||
in GemFire 6 are still supported, it is recommended that you use the new
|
||||
APIs if you are using GemFire 7.0. The Spring Data GemFire namespace
|
||||
supports either. In the example below, <literal>GatewaySender</literal>s are configured for a
|
||||
partitioned region by adding child elements to the region (<literal>gateway-sender</literal>
|
||||
and <literal>gateway-sender-ref</literal>). The <literal>GatewaySender</literal> may register
|
||||
<literal>EventFilter</literal>s and
|
||||
<literal>TransportFilters</literal>. Also shown below is an example configuration of an
|
||||
<literal>AsyncEventQueue</literal> which must also be wired into a region (not shown).
|
||||
</para>
|
||||
|
||||
<programlisting language="xml"><gfe:partitioned-region id="region-inner-gateway-sender" >
|
||||
<gfe:gateway-sender
|
||||
remote-distributed-system-id="1">
|
||||
<gfe:event-filter>
|
||||
<bean class="org.springframework.data.gemfire.example.SomeEventFilter"/>
|
||||
</gfe:event-filter>
|
||||
<gfe:transport-filter>
|
||||
<bean class="org.springframework.data.gemfire.example.SomeTransportFilter"/>
|
||||
</gfe:transport-filter>
|
||||
</gfe:gateway-sender>
|
||||
<gfe:gateway-sender-ref bean="gateway-sender"/>
|
||||
</gfe:partitioned-region>
|
||||
|
||||
<gfe:async-event-queue id="async-event-queue" batch-size="10" persistent="true" disk-store-ref="diskstore"
|
||||
maximum-queue-memory="50">
|
||||
<gfe:async-event-listener>
|
||||
<bean class="org.springframework.data.gemfire.example.SomeAsyncEventListener"/>
|
||||
</gfe:async-event-listener>
|
||||
</gfe:async-event-queue>
|
||||
|
||||
|
||||
<gfe:gateway-sender id="gateway-sender" remote-distributed-system-id="2">
|
||||
<gfe:event-filter>
|
||||
<ref bean="event-filter"/>
|
||||
<bean class="org.springframework.data.gemfire.example.SomeEventFilter"/>
|
||||
</gfe:event-filter>
|
||||
<gfe:transport-filter>
|
||||
<ref bean="transport-filter"/>
|
||||
<bean class="org.springframework.data.gemfire.example.SomeTransportFilter"/>
|
||||
</gfe:transport-filter>
|
||||
</gfe:gateway-sender>
|
||||
|
||||
<bean id="event-filter" class="org.springframework.data.gemfire.example.AnotherEventFilter"/>
|
||||
<bean id="transport-filter" class="org.springframework.data.gemfire.example.AnotherTransportFilter"/>
|
||||
</programlisting>
|
||||
|
||||
<para>On the other end of a <literal>GatewaySender</literal> is a corresponding
|
||||
<literal>GatewayReceiver</literal>
|
||||
to receive gateway events. The <literal>GatewayReceiver</literal> may also be configured with
|
||||
<literal>EventFilter</literal>s and <literal>TransportFilter</literal>s.</para>
|
||||
|
||||
<programlisting language="xml"><gfe:gateway-receiver id="gateway-receiver"
|
||||
start-port="12345" end-port="23456" bind-address="192.168.0.1">
|
||||
<gfe:transport-filter>
|
||||
<bean class="org.springframework.data.gemfire.example.SomeTransportFilter"/>
|
||||
</gfe:transport-filter>
|
||||
</gfe:gateway-receiver></programlisting>
|
||||
<para>Please refer to the GemFire product document for a detailed
|
||||
explanation of all the configuration options.</para>
|
||||
|
||||
</section>
|
||||
|
||||
<section>
|
||||
<title>WAN Configuration in GemFire 6.6</title>
|
||||
|
||||
<programlisting language="xml"><gfe:cache/>
|
||||
|
||||
<gfe:replicated-region id="region-with-gateway" enable-gateway="true" hub-id="gateway-hub"/>
|
||||
|
||||
@@ -33,16 +101,19 @@
|
||||
</gfe:gateway>
|
||||
</gfe:gateway-hub></programlisting>
|
||||
|
||||
<para>A region may synchronize all or part of its contents to a gateway hub
|
||||
used to access one or more remote systems. The region must set
|
||||
<literal>enable-gateway</literal> to <literal>true</literal> and specify the
|
||||
<literal>hub-id</literal>. </para>
|
||||
<para>A region may synchronize all or part of its contents to a gateway
|
||||
hub used to access one or more remote systems. The region must set
|
||||
<literal>enable-gateway</literal> to <literal>true</literal> and specify
|
||||
the <literal>hub-id</literal>.</para>
|
||||
|
||||
<para><note>
|
||||
<para>If just a hub-id is specified, Spring Data GemFire automatically
|
||||
assumes that the gateway should be enabled. </para>
|
||||
</note></para>
|
||||
<para>
|
||||
<note>
|
||||
<para>If just a hub-id is specified, Spring Data GemFire automatically
|
||||
assumes that the gateway should be enabled.</para>
|
||||
</note>
|
||||
</para>
|
||||
|
||||
<para>Please refer to the GemFire product document for a detailed
|
||||
explanation of all the configuration options.</para>
|
||||
<para>Please refer to the GemFire product document for a detailed
|
||||
explanation of all the configuration options.</para>
|
||||
</section>
|
||||
</section>
|
||||
|
||||
Reference in New Issue
Block a user