Commit Graph

923 Commits

Author SHA1 Message Date
John Blum
1bb8e7b7a9 SGF-439 - Add 'durable-client-id' and 'durable-client-timeout' attributes to the <gfe:client-cache> namespace element for convenience.
(cherry picked from commit e74768f006d59210ddd3d4fe5294a60ca505674f)

Signed-off-by: John Blum <jblum@pivotal.io>
2015-10-16 08:30:25 -07:00
Oliver Gierke
23374a583f SGF-436 - Updated changelog.
(cherry picked from commit 96d88f99084df6bf37e7a3cae0b824cac0b39978)

Signed-off-by: John Blum <jblum@pivotal.io>
2015-10-16 08:30:13 -07:00
John Blum
5025e2347a SGF-434 - Add a durable GemFire client cache test to assert proper behavior by SDG.
Removed the ClientCacheFactoryBean.readyForEvents() method and moved the logic to onApplicationEvent(..).
Updated the spring-gemfire 1.6 and 1.7 XSD with the new keep-alive attribue on the client-cache element.
Changed the generic signature of the CacheFactoryBean class back to com.gemstone.gemfire.cache.Cache due to the Spring container bean resolution Exception when using JavaConfig in SDG 1.7 with GemFire 8.1 and core Spring Framework 4.1.7.
(cherry picked from commit a458115c7f145bce9f02af71572920894ba66465)

Signed-off-by: John Blum <jblum@pivotal.io>
2015-10-14 02:08:45 -07:00
John Blum
61105b4da4 SGF-434 - Add a durable GemFire client cache test to assert proper behavior by SDG.
(cherry picked from commit b52a185)

Signed-off-by: John Blum <jblum@pivotal.io>
2015-10-14 02:08:22 -07:00
John Blum
01eb4a44a2 SGF-435 - Fix apache-geode build due to recent Apache Geode codebase changes that removed the deprecated BridgeServer code. 2015-10-08 12:12:21 -07:00
John Blum
92f84e2b57 SGF-429 - GemfirePersistentProperty considers a BigDecimal property an entity.
Additional changes and refactoring inspired by Spring Data MongoDB custom SimpleTypeHolder.
(cherry picked from commit 2344eb521df7326b06740c5196eeea4669c9349e)

Signed-off-by: John Blum <jblum@pivotal.io>
2015-10-05 23:41:23 -07:00
John Blum
afec8c216e SGF-429 - GemfirePersistentProperty considers a BigDecimal property an entity.
(cherry picked from commit 6113bfbea146a1036352fcc93f955f52d087822a)

Signed-off-by: John Blum <jblum@pivotal.io>
2015-10-05 23:41:15 -07:00
John Blum
3b9a43573a SGF-432 - IndexFactoryBean traps IndexExistsException instead of IndexNameConflictException.
(cherry picked from commit 9cc4b98e351b93c1c8d75ecb1cad8da77231782b)

Signed-off-by: John Blum <jblum@pivotal.io>
2015-10-05 23:41:05 -07:00
John Blum
63b7c0aabc SGF-433 - Fix improper resolution of Spring property placeholders in 'locators' and 'servers' attributes on the '<gfe:pool>' element(s) in Spring XML config.
(cherry picked from commit 1cd2a7ff505008c0d985f3ae3129fb0ce62c4f8b)

Signed-off-by: John Blum <jblum@pivotal.io>
2015-10-01 20:08:05 -07:00
John Blum
427f6e1aeb SGF-430 - Cleanup test failures on Windows due to incorrect Spring test context configuration resource resolution.
Fixes SnapshotServiceFactoryBeanTest.toSimpleFilenameUsingVariousPathnames(..) and the SnapshotServiceImportExportIntegrationTest failures on MS Windows due to file system path issues.
(cherry picked from commit 87f00274d5bd571577528902fc4de2fdbfcd32c8)

Signed-off-by: John Blum <jblum@pivotal.io>
2015-09-11 22:07:47 -07:00
John Blum
7a957c36b9 SGF-431 - Remove mavenLocal() from the artifact repository declarations. 2015-09-10 15:09:40 -07:00
John Blum
08c74fb96b SGF-387 - Prepare SDG 1.8 and upgrade to GemFire 8.2.0 GA
Added the 'New in the 1.8 Release' section to the 'New Features' chapter in the Spring Data GemFire Reference Guide.
(cherry picked from commit 8d7995581093e67efc67f2cc1c3a2aee41830fa7)

Signed-off-by: John Blum <jblum@pivotal.io>
2015-09-10 15:01:53 -07:00
John Blum
c313a757bd SGF-387 - Prepare SDG 1.8 and upgrade to GemFire 8.2.0 GA
Created the spring-gemfire-1.8.xsd and spring-data-gemfire-1.8.xsd and updated the spring.schemas file to references the version appropriate schemas (XSDs) for SDG 1.8.  Also rebased on 'master' to pull in SGF-409.
(cherry picked from commit 32d52301c643d7ca9d735f6f53d4f44333922ebc)

Signed-off-by: John Blum <jblum@pivotal.io>
2015-09-10 15:01:39 -07:00
John Blum
61687fa131 SGF-427 - Update Spring Data GemFire Reference Guide 'New in the 1.7 Release' section.
(cherry picked from commit 6d218022f2a17667171841e2211ef0be2a5a6110)

Signed-off-by: John Blum <jblum@pivotal.io>
2015-09-10 14:59:17 -07:00
Oliver Gierke
37f6d760e6 SGF-426 - Updated changelog.
(cherry picked from commit 33ff69992d7fd194d153e1aad9db14a13690a8e7)

Signed-off-by: John Blum <jblum@pivotal.io>
2015-09-10 14:57:40 -07:00
John Blum
6016fa56a0 SGF-430 - Cleanup test failures on Windows due to incorrect Spring test context configuration resource resolution.
(cherry picked from commit 7462d7f607b668c20ded0e96ef7592a75ba35ba4)

Signed-off-by: John Blum <jblum@pivotal.io>
2015-09-10 14:51:31 -07:00
John Blum
28990b0bdf SGF-408 - Provide support in the SDG XML namespace to load a pre-defined data set using GemFire Snapshot Service for development and testing purposes.
Fixed up Javadoc.
(cherry picked from commit a2ec36157b5907a5f4ccb08775bf26bf20a2aa8b)

Signed-off-by: John Blum <jblum@pivotal.io>
2015-08-31 22:32:06 -07:00
John Blum
21c0d9b50a SGF-408 - Provide support in the SDG XML namespace to load a pre-defined data set using GemFire Snapshot Service for development and testing purposes.
Renamed the '<gfe-data:export-snapshot>' and '<gfe-data:import-snapshot>' sub-elements to <gfe-data:snapshot-export>' and '<gfe-data:snapshot-import>' respectively; updated the SnapshotServiceParser to appropriately handle the sub-element name change.
Added a mini chapter in the Spring Data GemFire Reference Guide on how-to use the GemFire SnapshotService support provided by Spring Data GemFire.
2015-08-31 22:31:51 -07:00
John Blum
05f33c7d51 SGF-408 - Provide support in the SDG XML namespace to load a pre-defined data set using GemFire Snapshot Service for development and testing purposes.
Renamed the <gfe-data:snapshot-service> element 'suppress-init-import' attribute to 'suppress-import-on-init'.
Fixed up the JSONRegionAdviceTest class test case failures due to changes in the ..repository.sample.Person application domain object class.
(cherry picked from commit d9245f343050182f570a0ea1bf629f03258667b1)

Signed-off-by: John Blum <jblum@pivotal.io>
2015-08-31 22:30:21 -07:00
John Blum
ea37fbacbe SGF-408 - Provide support in the SDG XML namespace to load a pre-defined data set using GemFire Snapshot Service for development and testing purposes.
Repackaged all GemFire Snapshot Service support classes in Spring Data GemFire under org.springframework.data.gemfire.snapshot.
Moved snapshot application events to ..snapshot.event.
Moved the ComposableSnapshotFilter class to ..snapshot.filter.
(cherry picked from commit 5bf3e8e8132c9cff0c3da33b271bfa4e049968c0)

Signed-off-by: John Blum <jblum@pivotal.io>
2015-08-31 22:30:09 -07:00
John Blum
3a360a37b4 SGF-408 - Provide support in the SDG XML namespace to load a pre-defined data set using GemFire Snapshot Service for development and testing purposes.
Refactored the SnapshotServiceFactoryBean with the addition of a new property (suppressInitImport) to suppress importing on initialization.
Refactored the SnapshotServiceFactoryBean SnapshotServiceAdapter interface's doImport(..) and doExport(..) method signatures to varargs.
Added the ComposableSnapshotFilter class implemeting the SnapshotFilter interface and Composition Design Pattern for composing multiple SnapshotFilters into one using logical operators.
Cleaned up and added addition unit tests.
Completed all integration testing including testing with export and import snapshot application event driven GemFire Cache Region snapshots.
2015-08-31 22:29:55 -07:00
John Blum
447d55efbe SGF-408 - Provide support in the SDG XML namespace to load a pre-defined data set using GemFire Snapshot Service for development and testing purposes.
Refactored the SnapshotApplicationEvent into 2 separate ApplicationEvent classes to handle import and exports.
Refactored the SnapshotServiceFactoryBean class to handle import/export SnapshotApplicationEvents in onApplicationEvent(:SnapshotApplicationEvent).
Added integration tests for the archive file handling capabilities of the SnapshotServiceFactoryBean.SnapshotServiceAdapterSupport class.
Added additional unit tests.
(cherry picked from commit 35107aa12dc9d5f133697775c2535c1f9cd3cd87)

Signed-off-by: John Blum <jblum@pivotal.io>
2015-08-31 22:27:59 -07:00
John Blum
e78169eda2 SGF-408 - Provide support in the SDG XML namespace to load a pre-defined data set using GemFire Snapshot Service for development and testing purposes.
Refactored the ServiceSnapshotFactoryBean class to handle ZIP and JAR files as input sources on GemFire Cache data imports.
Added additional unit tests for SnapshotServiceFactoryBean to improve coverage along with a basic integration test covering import and export.
Fixed bugs in the SnapshotServiceParser and the XSD.
Moved the iterable(:Enumeration) and iterable(:Iterator) methods from the test CollectionUtils class to the 'official' CollectionUtils class.
(cherry picked from commit b47884c88c52b612aff6b8aa01fc0994ac42095c)

Signed-off-by: John Blum <jblum@pivotal.io>
2015-08-31 22:27:51 -07:00
John Blum
f3d1617dde SGF-408 - Provide support in the SDG XML namespace to load a pre-defined data set using GemFire Snapshot Service for development and testing purposes.
Introduced a SnapshotApplicationEvent extending Spring ApplicationEvent to allow SDG-based GemFire applications to trigger GemFire Cache Region data snapshots (export ops).
Refactored SnapshotServiceFactoryBean to be a ApplicationListener on SnapshotApplicationEvents.
Introduced ExportSnapshotException and ImportSnapshotException to more succinctly desribe the snapshot import/export error.
Refactored CacheSnapshotServiceAdapter.doImport(..) method to invoke load(:SnapshotFormat, :SnapshotOptions, :File...), i.e. file-based in order to apply the SnapshotFilter on load, which is not applicable to the CacheSnapshotService.load(:File, :SnapshotFormat) method that assumes the 'File' is a directory.  Therefore doImport(..) expands the directory if the File given is indeed a valid file system directory.
Added additional unit tests.
(cherry picked from commit 96f6a70595543bc375b2f346bd1c0932b174e2b6)

Signed-off-by: John Blum <jblum@pivotal.io>
2015-08-31 22:27:42 -07:00
John Blum
dadd32843a SGF-408 - Provide support in the SDG XML namespace to load a pre-defined data set using GemFire Snapshot Service for development and testing purposes.
Initial implementation and unit tests.
2015-08-31 22:27:19 -07:00
John Blum
ab4be453ef SGF-392 - Add support for OQL Query statement extensions in Repository Query methods via Annotations.
Reference Guide updates for OQL Query Langauge extension support via Annotations.
(cherry picked from commit dff74e694c6faa686ab63190039b63ae93814cdd)

Signed-off-by: John Blum <jblum@pivotal.io>
2015-08-14 13:19:30 -07:00
John Blum
8a966bbdd4 SGF-392 - Add support for OQL Query statement extensions in Repository Query methods via Annotations.
Test refactoring and cleaup.
(cherry picked from commit abc5722af5e26800a25215eca933abbc146e726a)

Signed-off-by: John Blum <jblum@pivotal.io>
2015-08-14 13:19:21 -07:00
John Blum
147714e0a5 SGF-392 - Add support for OQL Query statement extensions in Repository Query methods via Annotations.
Adding integration tests to test the use of the custom OQL Query Annotation extensions in Repository Query methods against GemFire's actual OQL Query engine.
(cherry picked from commit bdbf101fd7f3e920f28634bb24cd0667855fa1e2)

Signed-off-by: John Blum <jblum@pivotal.io>
2015-08-14 13:19:08 -07:00
John Blum
5d8a1d2ce5 SGF-392 - Add support for OQL Query statement extensions in Repository Query methods via Annotations.
Implementation and unit test coverage complete.
(cherry picked from commit 23d05aeaee743922a9d371b8b7f8201e6cb9578c)

Signed-off-by: John Blum <jblum@pivotal.io>
2015-08-14 13:18:59 -07:00
John Blum
780ce89050 SGF-392 - Add support for OQL Query statement extensions in Repository Query methods via Annotations.
(cherry picked from commit c022f2c00585d9f90243a480486cb38f6d46d2ee)

Signed-off-by: John Blum <jblum@pivotal.io>
2015-08-14 13:18:48 -07:00
John Blum
75e1c58d8e SGF-419 - Documentation error on page 22 in the Spring Data GemFire Reference PDF.
(cherry picked from commit ff290a442e5c2982e0cb806e63f090493786c52d)

Signed-off-by: John Blum <jblum@pivotal.io>
2015-08-14 13:18:38 -07:00
John Blum
8b216b83c2 SGF-425 - Allow early initialization and re-initialization of LazyWiringDeclarableSupport instances.
Deprecated org.springframework.data.gemfire.WiringDeclarableSupport in favor of LazyWiringDeclarableSupport and modified LazyWiringDeclarableSupport to 'release' the BeanFactory reference.
(cherry picked from commit 29a169a10cd78d451f4d84227e8058be68d0d6be)

Signed-off-by: John Blum <jblum@pivotal.io>
2015-08-11 00:09:28 -07:00
John Blum
0c813862e1 SGF-425 - Allow early initialization and re-initialization of LazyWiringDeclarableSupport instances.
Fixed test failures associated with changes to LazyWiringDeclarableSupport passing the ApplicationContext onApplicationEvents (ContextRefreshedEvent) directly rather than the ApplicationContext's ConfigurableListableBeanFactory required by BeanConfigurerSupport.
(cherry picked from commit be6a3aac3e5281fdb2c77ad8b88200c92c0b7883)

Signed-off-by: John Blum <jblum@pivotal.io>
2015-08-11 00:09:17 -07:00
John Blum
0bf13f7e0b SGF-425 - Allow early initialization and re-initialization of LazyWiringDeclarableSupport instances.
(cherry picked from commit 93280bf2047081e5387a896e27e19e5d7e5cce12)

Signed-off-by: John Blum <jblum@pivotal.io>
2015-08-11 00:09:08 -07:00
John Blum
cd4a2497b7 SGF-423 - Handle improper ClassCastException thrown from SDG's Function Execution interface and annotation-based support when a GemFire Function throws an Exception.
Additional refactoring and added serveral unit tests.
(cherry picked from commit a806f1540e6fc995410671f34382d14389ace90a)

Signed-off-by: John Blum <jblum@pivotal.io>
2015-08-11 00:08:57 -07:00
John Blum
677d46c1df 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.
(cherry picked from commit bb8ce682c6cc97abb149b74c58b2124b445e1bd2)

Signed-off-by: John Blum <jblum@pivotal.io>
2015-08-11 00:08:47 -07:00
Oliver Gierke
b7720cad36 SGF-422 - Updated changelog. 2015-08-11 00:08:26 -07:00
Oliver Gierke
22d50d0189 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.(cherry picked from commit 85c333dfc582719229fee006e538ff77f569a242)

Signed-off-by: John Blum <jblum@pivotal.io>
2015-08-11 00:06:54 -07:00
John Blum
fcfa530fd3 SGF-421 - Fix Spring Data GemFire's MappingPdxSerializer due to the package-private access modifier change on org.springframework.data.mapping.model.BeanWrapper.
(cherry picked from commit d5d2fd09b7a105c1eb1f8955f98127e550641ae6)

Signed-off-by: John Blum <jblum@pivotal.io>
2015-08-03 18:11:49 -07:00
John Blum
fc3519a080 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.
Final touches on the SDG Expiration annotation based support.  Added additional test cases to test the improper specification of Expiration annotation attribute settings and modified the SDG Reference Guide to discuss Spring Property Placeholder and SpEL support.
(cherry picked from commit 278af87703dfbc341fef1690e7064d9de80fc295)

Signed-off-by: John Blum <jblum@pivotal.io>
2015-07-31 14:31:04 -07:00
John Blum
6264b93c7d 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.
(cherry picked from commit 92f3c4e80839ed4034fe3229c68aebf90091c9a1)

Signed-off-by: John Blum <jblum@pivotal.io>
2015-07-31 14:30:55 -07:00
John Blum
f07c6990a4 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.
(cherry picked from commit 6e73f52025509d9bf89a3baf25d21201b49728de)

Signed-off-by: John Blum <jblum@pivotal.io>
2015-07-31 14:30:45 -07:00
John Blum
cab84cc2ab 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.
(cherry picked from commit 419eb8d8792124d7ad6f2e7e7da12f4013b3a429)

Signed-off-by: John Blum <jblum@pivotal.io>
2015-07-31 14:30:35 -07:00
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
75598064d3 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.
Fixed up the GemFireDataSourceUsingNonSpringConfiguredGemFireServerIntegrationTest to customize the classpath in order to exlude the Spring Data GemFire dependency from the non-Spring-configured GemFire Server's classpath thereby removing any presence of the ListRegionsOnServerFunction GemFire Function; made use of the com.gemstone.gemfire.distributed.ServerLauncher class for launching the non-Spring-configured GemFire Server and finally, wrote the gemfire-datasource-integration-test-cache.xml as an cache.xml file to the non-Spring-configured GemFire Server's working directory to properly configure the GemFire Server.
(cherry picked from commit 65ab1c7dcd7aec6fbc09241c1b3be0709b9bfb01)

Signed-off-by: John Blum <jblum@pivotal.io>
2015-07-20 16:41:32 -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
Andy Wilkinson
6ce35bd835 SGF-418 - Merge PR #83 updating the Spring IO Platform Plugin to perform compatibility checks.
Upgrade to Gradle 1.12
(cherry picked from commit fc42ab0ebe792027569fcab9f5076e12d5916142)

Signed-off-by: John Blum <jblum@pivotal.io>
2015-07-14 15:24:16 -07:00