Commit Graph

514 Commits

Author SHA1 Message Date
John Blum
16ebd5a0f6 SGF-404 - Enable Expiration settings and policies to be specified per application domain object using an @Expiration annotation and a custom, SDG-provided CustomExpiry instance.
(cherry picked from commit a9b7f9d8e8deca6aa198e24d441d8e77bf3247cc)

Signed-off-by: John Blum <jblum@pivotal.io>
2015-07-31 14:30:10 -07:00
John Blum
4fe59f2c42 SGF-409 - Modify the GemfireDataSourcePostProcessor (basis for <gfe:datasource>) to not assume a GemFire Server was configured and bootstrapped with Spring and subsequently that the SDG ListRegionsOnServerFunction was registered.
Refactored the GemfireDataSourcePostProcessorTest class test cases based on the new implementation of the GemfireDataSourcePostProcessor BeanFactoryPostProcessor, which uses the GemFire internal GetRegionsFunction GemFire Function as a fallback when the ListRegionsOnServerFunction has not been registered or is not available.  In addition, added 2 integration tests to test a Spring Data GemFire ClientCache connecting to a Spring-configured GemFire Server and non-Spring-configured GemFire Server asserting that client PROXY Region beans are appropriately created in the Spring ApplicationContext.
(cherry picked from commit 52e4be42402ee376df17d7ae036336548b1349c9)

Signed-off-by: John Blum <jblum@pivotal.io>
2015-07-20 16:41:21 -07:00
John Blum
b4145b1764 SGF-409 - Modify the GemfireDataSourcePostProcessor (basis for <gfe:datasource>) to not assume a GemFire Server was configured and bootstrapped with Spring and subsequently that the SDG ListRegionsOnServerFunction was registered.
Adding unit tests for the GemfireDataSourcePostProcessor class.
(cherry picked from commit 0055a79a5d0119c0813f86a6504427d3d2d885a6)

Signed-off-by: John Blum <jblum@pivotal.io>
2015-07-20 16:41:13 -07:00
John Blum
8fe91cc89e SGF-409 - Modify the GemfireDataSourcePostProcessor (basis for <gfe:datasource>) to not assume a GemFire Server was configured and bootstrapped with Spring and subsequently that the SDG ListRegionsOnServerFunction was registered.
(cherry picked from commit 96bb8b3d60a617818cf845708c65e7cad83de65c)

Signed-off-by: John Blum <jblum@pivotal.io>
2015-07-20 16:40:56 -07:00
John Blum
53d8f34d2f SGF-415 - Remove the ClientCacheFactory Pool configuration in ClientCacheFactoryBean.
(cherry picked from commit dd572d0b36d6c2b2d05636756c4291a1f4d31867)

Signed-off-by: John Blum <jblum@pivotal.io>
2015-07-15 11:45:04 -07:00
John Blum
3b85b723d8 SGF-414 - Resolve incompatibility between the DistributedSystem created by the PoolFactoryBean and the DistributedSystem resolved by the ClientCacheFactoryBean when SSL is configured.
(cherry picked from commit 130cc4ca4c84a0151ba8f98194a3522ac7e34121)

Signed-off-by: John Blum <jblum@pivotal.io>

Added additional test cases for the CacheFactoryBean and ClientCacheFactoryBean based on SSL support. 1.7 SDG XSD cleanup.
2015-07-13 18:03:06 -07:00
John Blum
82334090fe SGF-414 - Resolve incompatibility between the DistributedSystem created by the PoolFactoryBean and the DistributedSystem resolved by the ClientCacheFactoryBean when SSL is configured.
(cherry picked from commit 4f2eb221636971ed640ff4cb589f54e1207603d1)

Signed-off-by: John Blum <jblum@pivotal.io>
2015-07-13 17:57:00 -07:00
John Blum
2ecbd7b53d SGF-417 - Update apache-geode SDG branch based on the latest Apache Geode developments (snapshot 20150713182515). 2015-07-13 17:37:55 -07:00
John Blum
52b5162d93 SGF-410 - Enable the definition and creation of a generic, GemFire Cache Region with out-the-box defaults.
(cherry picked from commit d0ba11b3f3d53c03841fc732d2466083f9226881)

Signed-off-by: John Blum <jblum@pivotal.io>
2015-06-12 00:23:30 -07:00
John Blum
b4e24d6f8e SGF-398 - Provide early support of Apache Geode (Pivotal GemFire OSS).
Fixed the AsyncEventQueueWithListenerIntegrationTest class test case method failures involving GemFire 7.0.1 AEQ configuration attributes, like dispatcher-threads.
2015-06-02 18:06:17 -07:00
John Blum
8363d6f463 SGF-398 - Provide early support of Apache Geode (Pivotal GemFire OSS).
Fixed up and polished additional SDG test suite classes related to Pivotal GemFire functionality and features when ran with Apache Geode.  Also introduced a GemfireFeature enumerated type to implement more fine-grained control of specific feature checking when attributes of XML namespace elements refer to Pivotal GemFire specific features.
2015-06-02 18:06:16 -07:00
John Blum
b3943ebb46 SGF-398 - Provide early support of Apache Geode (Pivotal GemFire OSS).
First iteration of SDG's test suite ran with Apache Geode; Implemented Spring test framework, profile support to enable/disable tests based on the presence of either Apache Geode or Pivotal GemFire.
2015-06-02 18:06:15 -07:00
John Blum
9a1210bc84 SGF-398 - Provide early support of Apache Geode (Pivotal GemFire OSS).
Implemented Pivotal GemFire/Apache Geode feature checking during SDG XML namespace parsing and processing.
2015-06-02 18:06:15 -07:00
John Blum
abbbfed8fd SGF-398 - Provide early support of Apache Geode (Pivotal GemFire OSS).
Fixed up and polished the GatewaySenderFactoryBean 'orderPolicy' configuration and validation changing the loosely, String-typed 'orderPolicy' property to use the GatewaySender.OrderPolicy enum.
2015-06-02 18:06:14 -07:00
John Blum
8c2d01262a SGF-398 - Provide early support of Apache Geode (Pivotal GemFire OSS).
Source compilation and resource processing build step complete.
2015-06-02 18:06:14 -07:00
John Blum
d6dc23a440 SGF-407 - Modify the MappingPdxSerializer to allow for extensibility. 2015-06-02 14:44:04 -07:00
John Blum
9e4530c12c SGF-370 - Add multi-Index definition and creation support.
Refactored Index definition around a 'single' QueryService instance obtained from the GemFire Cache instance and refactored existing tests and added new tests accordingly.
2015-05-19 17:29:12 -07:00
John Blum
a33a121365 SGF-370 - Add multi-Index definition and creation support. 2015-05-08 17:01:11 -07:00
John Blum
4c7cc4fe8d SGF-403 - Simplify the process of adding custom methods to Spring Data GemFire Repositories. 2015-05-04 10:32:04 -07:00
John Blum
b42ca233f0 SGF-196 - Support adding CacheListeners, CacheLoaders and CacheWriters, along with other mutable Region attributes to an existing Region. 2015-04-22 16:18:31 -07:00
John Blum
b9881dfad9 SGF-400 - Enable the ability to set the ClassLoader used by the Spring ApplicationContext created in the SpringContextBootstrappingInitializer for loading bean definition classes and resolving resources. 2015-04-18 11:37:02 -07:00
John Blum
3c9d9f7065 SGF-396 - Enable support for variable Locator and Server endpoints on a SDG GFE Pool bean definition in a Spring Context.
Removed the SDG XSD schema restriction requiring the use of at least 1 <gfe:locator> of <gfe:server> sub-element on the <gfe:pool> element.  Also added a default Locator endpoint on localhost listening on the Locators default port of 10334 when no Locator or Server endpoints were specified, either by way of explicit use of the 'locators' or 'servers' attribute or a corresponding <gfe:locator> or <gfe:server> sub-element.
2015-04-16 14:17:46 -07:00
John Blum
ee392c6b7f SGF-396 - Enable support for variable Locator and Server endpoints on a SDG GFE Pool bean definition in a Spring Context. 2015-04-13 23:38:59 -07:00
John Blum
d931897c0e SGF-395 - Allow Spring JavaConfig @Configuration classes to be registered and used to configure the (AnnotationConfig)ApplicationContext created by the SpringContextBootstrappingInitializer. 2015-04-13 23:37:32 -07:00
John Blum
6a958da6b0 SGF-357 - Optimize SimpleGemfireRepository.deleteAll() by using the new Region.removeAll() operation. 2015-04-13 19:31:52 -07:00
John Blum
d44464dee5 SGF-390 - Improve unit test coverage for the PoolFactoryBean class. 2015-04-01 14:25:00 -07:00
John Blum
06d1df02ce SGF-389 - Improve unit test coverage of the ClientCacheFactoryBean class. 2015-03-31 16:52:00 -07:00
John Blum
6c5887627a SGF-391 - Simplify and improve the robustness of the JNDI DataSource Type matching used in the Cache FactoryBeans. 2015-03-25 17:14:33 -07:00
John Blum
77b2d52b66 SGF-388 - Improve unit test coverage of the CacheFactoryBean class. 2015-03-25 14:39:36 -07:00
John Blum
42eefab61c SGF-383 - Refactor and make RegionFactoryBean and RegionLookupFactoryBean abstract. 2015-03-23 16:42:24 -07:00
John Blum
17c9358547 SGF-322 - Add support for the newly added, retro 'max-connections' attribute on the <gfe:gateway-hub> element in the SDG XML namespace (XSD). 2015-03-23 16:42:24 -07:00
John Blum
79f6025647 SGF-371 - The GatewayReceiverFactoryBean needs to set GatewayReceiverFactory.setManualStart(false) in GemFire 8.1 in order to enable manual starts on a GatewayReceiver. 2015-03-23 16:42:23 -07:00
John Blum
c0aed1984c SGF-353 - Prepare SDG 1.7 and upgrade to GemFire 8.1.0 GA 2015-03-23 16:42:23 -07:00
John Blum
80854b9b97 SGF-385 - Local region does remote put in addition to local put in client cache. 2015-03-22 22:22:56 -07:00
John Blum
e9251afa1d SGF-384 - Issue with partitioned-region-template when persistence is enabled. 2015-03-19 10:48:15 -07:00
John Blum
ac8ff3750c SGF-382 - Add logging to the SpringContextBootstrappingInitializer init method to capture any Spring context/GemFire errors on startup. 2015-03-11 13:32:56 -07:00
John Blum
3063046e53 SGF-381 - Enable RegionFactoryBean to respect the Data Policy specified on a nested or referenced RegionAttributes bean definition. 2015-03-10 14:25:16 -07:00
John Blum
eade5d8a39 SGF-378 - SDG completely ignores the 'socket-read-timeout' attribute on the Gateway element nested in a GatewayHub. 2015-02-24 18:14:45 -08:00
John Blum
d42d5b57fe SGF-375 - The <gfe:gateway-hub> XML namespace element is missing the 'max-time-between-pings' attribute. 2015-02-24 14:47:12 -08:00
John Blum
a5b743989b SGF-374 - Specifying a disk-store on a GatewayHub forces the GatewayHub to be persistent. 2015-02-24 14:21:22 -08:00
John Blum
975aa80785 SGF-376 - The GemFire WAN GatewayHub support needs refactoring and test coverage. 2015-02-23 17:17:21 -08:00
John Blum
9b951666b0 SGF-289 - Enumeration restrictions (xsd:enumeration) should be avoided in the XML schema.
Removed the XSD enumeration restriction on the 'scope' attribute of the 'baseReplicatedRegionType' complexType, Region element definition in the SDG XSD allowing the use of property placeholders to specify a GemFire Cache Region's Scope for different distribution patterns.  In addition, completely removed the 'scopeType' simpleType element definition in the SDG XSD.
2015-02-03 10:01:07 -08:00
John Blum
54821dcc66 SGF-289 - Enumeration restrictions (xsd:enumeration) should be avoided in the XML schema.
Removed the XSD enumeration restriction on the 'type' attribute of the 'index' element definition inside the SDG XML namespace (XSD) allowing the use of property placeholders to specify the Index types on GemFire Cache Region Indexes.
2015-02-02 13:31:31 -08:00
John Blum
b8bd3c69f0 SGF-289 - Enumeration restrictions (xsd:enumeration) should be avoided in the XML schema.
Removed the XSD enumeration restriction on the 'eviction-type' attribute of the 'subscription-config' sub-element of the 'cache-server' element inside the SDG XML namespace (XSD) allowing the use of property placeholders to specify the Eviction Policy for Client Subscription to GemFire Cache Servers.
2015-02-02 10:45:38 -08:00
John Blum
4fc92494ae SGF-289 - Enumeration restrictions (xsd:enumeration) should be avoided in the XML schema.
Removed the XSD enumeration restriction on the 'result-policy' attribute of the 'interestType' SDG XSD complex-type definition in order to allow users to specify an Interest Policy using concrete values or properly placeholders when registering client Region Interests.
2015-01-28 18:22:59 -08:00
John Blum
d615dcad5f SGF-289 - Enumeration restrictions (xsd:enumeration) should be avoided in the XML schema.
Refactoring SDG enum types.  Renamed the EvictionType enum to EvictionPolicyType to reflect that the enum represents an Eviction 'policy' encompassing both Eviction algorith along with the monitored resource triggering Eviction.  Renamed the EvictionTypeConverter to EvictionPolicyConverter to more accurately reflect it's intent.  Renamed IndexMaintenanceType enum to IndexMaintenancePolicyType to more accurately describe the purpose of the index maintenance setting reflected as a policy.  Renamed IndexMaintenanceTypeConverter to IndexMaintenancePolicyConverter to more accurately reflect it's intent.
2015-01-28 18:22:58 -08:00
John Blum
ecbd4fd232 SGF-289 - Enumeration restrictions (xsd:enumeration) should be avoided in the XML schema.
Removed the 'subscriptionPolicyType' XSD simple-type definition and subsequently, all Subscription policy enumeration restrictions on SDG Region elements in the SDG XML namespace (e.g. gfe:partitioned-region) that declare and define a Subscription policy.  Renamed SubscriptionType to InterestPolicyType along with the associated test suite class.  Renamed the SubscriptionTypeConverter class to InterestPolicyConverter along with the associated test suite class.  Created the RegionSubscriptionAttributesNamespaceTest class to test the configuration of Subscription on GemFire Regions in the SDG XML namespace using various settings and property placeholders.
2015-01-28 18:22:58 -08:00
John Blum
319442b446 SGF-289 - Enumeration restrictions (xsd:enumeration) should be avoided in the XML schema.
Removed the 'evictionActionType' XSD simple-type definition and subsequently, all EvictionAction enumeration restrictions on all SDG Region element types in the SDG XML namespace (e.g. gfe:partitioned-region) that define and declare an eviction policy and corresponding 'action'.  In addition, performed refactoring and cleanup on serveral new SDG enumeration types, like EvictionType and ExpirationActionType, along with the corresponding Converter implementations and bean properties on their respective FactoryBeans (EvictionAttributesFactoryBean and ExpirationAttributesFactoryBean).
2015-01-28 18:22:58 -08:00
John Blum
3f72ab8928 SGF-289 - Enumeration restrictions (xsd:enumeration) should be avoided in the XML schema.
Removed the XSD enumeration restriction on the 'type' attribute of the 'evictionType' XSD complex-type definition in the SDG XML namespace schema, which is used by the 'eviction' sub-elements in the LOCAL, PARTITION and REPLICATE Region element schema types.  In addition, created the ExpirationAttributesFactoryBean class in the org.springframework.data.gemfire package which serves as a Spring FactoryBean and builder for constructing GemFire EvictionAttributes used in Region configuration.  Updated tests to assert and validate the use of property placeholders on both the Eviction 'type' and Expiration 'action' attributes in the Spring Data GemFire XML namespace configuration meta-data.
2015-01-28 18:22:57 -08:00
John Blum
844c630614 SGF-289 - Enumeration restrictions (xsd:enumeration) should be avoided in the XML schema.
Removed the XSD enumeration restriction on the 'action' attribute of the 'expirationType' XSD complex-type definition used by the 'region-ttl', 'region-tti', 'entry-ttl', and 'entry-tti' elements in the 'baseReadOnlyRegionType' inside the Spring GemFire XML Schema (XSD).
2015-01-28 18:22:57 -08:00