Commit Graph

413 Commits

Author SHA1 Message Date
John Blum
bb8ce682c6 SGF-423 - Handle improper ClassCastException thrown from SDG's Function Execution interface and annotation-based support when a GemFire Function throws an Exception.
Initial refactoring and code cleanup.
2015-08-06 17:34:58 -07:00
Oliver Gierke
85c333dfc5 SGF-421 - Switched to existing PropertyAccessor abstraction.
Removed the custom BeanPropertyAccessor implementation that was introduced to compensate for the removal of BeanWrapper in Spring Data Commons. That removal however was already preceded by an alternative way to obtain a PropertyAccessor via the PersistentEntity, which is what we're now doing.
2015-08-04 09:56:47 +02:00
John Blum
d5d2fd09b7 SGF-421 - Fix Spring Data GemFire's MappingPdxSerializer due to the package-private access modifier change on org.springframework.data.mapping.model.BeanWrapper. 2015-08-03 16:10:31 -07:00
John Blum
92f3c4e808 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.
Added support for Spring Property Placeholders in the @Expiration annotation attributes to offer even more flexibility when configuring Region Entry values, application domain object Expiration policies and settings.
2015-07-31 00:57:49 -07:00
John Blum
6e73f52025 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.
Added support for SpEL expressions in the @Expiration annotation attributes to offer even more flexibility when configuring Region Entry values, application domain object Expiration policies and settings.
2015-07-29 16:02:43 -07:00
John Blum
419eb8d879 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.
Added Javadoc comments to the AnnotationBasedExpiration class factory methods: forIdleTimeout() and forTimeToLive().  Also added a section in the Region configuration chapter of the Spring Data GemFire Reference Guide.
2015-07-29 12:53:19 -07:00
John Blum
a9b7f9d8e8 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. 2015-07-29 12:53:18 -07:00
John Blum
52e4be4240 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.
2015-07-20 12:24:34 -07:00
John Blum
0055a79a5d 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.
2015-07-16 18:09:28 -07:00
John Blum
96bb8b3d60 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. 2015-07-15 18:21:06 -07:00
John Blum
dd572d0b36 SGF-415 - Remove the ClientCacheFactory Pool configuration in ClientCacheFactoryBean. 2015-07-15 10:34:39 -07:00
John Blum
130cc4ca4c SGF-414 - Resolve incompatibility between the DistributedSystem created by the PoolFactoryBean and the DistributedSystem resolved by the ClientCacheFactoryBean when SSL is configured.
Added additional test cases for the CacheFactoryBean and ClientCacheFactoryBean based on SSL support. 1.7 SDG XSD cleanup.
2015-07-10 16:56:29 -07:00
John Blum
4f2eb22163 SGF-414 - Resolve incompatibility between the DistributedSystem created by the PoolFactoryBean and the DistributedSystem resolved by the ClientCacheFactoryBean when SSL is configured. 2015-07-09 18:31:00 -07:00
John Blum
d0ba11b3f3 SGF-410 - Enable the definition and creation of a generic, GemFire Cache Region with out-the-box defaults. 2015-06-11 23:53:28 -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
John Blum
4a1a3bf64d SGF-289 - Enumeration restrictions (xsd:enumeration) should be avoided in the XML schema.
Removed the XSD enumeration restriction on the 'index-update-type' attribute of the 'baseRegionType' element in the Spring GemFire XML Schema (XSD).
2015-01-28 18:22:57 -08:00