Commit Graph

595 Commits

Author SHA1 Message Date
John Blum
a2ec36157b 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.
2015-08-31 22:22:33 -07:00
John Blum
f292ec6fad 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 21:46:29 -07:00
John Blum
d9245f3430 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.
2015-08-28 11:09:13 -07:00
John Blum
5bf3e8e813 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.
2015-08-28 00:56:12 -07:00
John Blum
608ad777e3 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-28 00:33:13 -07:00
John Blum
35107aa12d 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.
2015-08-25 00:59:01 -07:00
John Blum
b47884c88c 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.
2015-08-24 22:45:44 -07:00
John Blum
96f6a70595 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.
2015-08-22 13:38:35 -07:00
John Blum
022c68cdd1 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-19 22:29:31 -07:00
John Blum
dff74e694c 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.
2015-08-14 12:34:42 -07:00
John Blum
abc5722af5 SGF-392 - Add support for OQL Query statement extensions in Repository Query methods via Annotations.
Test refactoring and cleaup.
2015-08-13 14:16:47 -07:00
John Blum
bdbf101fd7 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.
2015-08-13 13:16:20 -07:00
John Blum
23d05aeaee SGF-392 - Add support for OQL Query statement extensions in Repository Query methods via Annotations.
Implementation and unit test coverage complete.
2015-08-12 00:18:30 -07:00
John Blum
c022f2c005 SGF-392 - Add support for OQL Query statement extensions in Repository Query methods via Annotations. 2015-08-12 00:18:30 -07:00
John Blum
ff290a442e SGF-419 - Documentation error on page 22 in the Spring Data GemFire Reference PDF. 2015-08-12 00:13:45 -07:00
John Blum
29a169a10c 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.
2015-08-10 23:13:57 -07:00
John Blum
be6a3aac3e 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.
2015-08-10 23:13:57 -07:00
John Blum
93280bf204 SGF-425 - Allow early initialization and re-initialization of LazyWiringDeclarableSupport instances. 2015-08-10 23:13:57 -07:00
John Blum
a806f1540e 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.
2015-08-07 01:36:59 -07:00
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
278af87703 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.
2015-07-31 13:41:11 -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
65ab1c7dcd 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.
2015-07-20 14:49:09 -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
76aab502c4 SGF-370 - Add multi-Index definition and creation support.
Added integration tests to test the definition and subsequent creation of multiple Indexes inside a GemFire Server within a Spring context.
2015-05-18 14:59:49 -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
fb46e560f4 SGF-196 - Support adding CacheListeners, CacheLoaders and CacheWriters, along with other mutable Region attributes to an existing Region.
Adding additional test cases and test case refinements.
2015-04-23 17:08: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
847283a7e4 SGF-399 - Fix incorrect XSD appinfo annotation, expected 'type' attribute value on the 'error-handler' attribute of the 'cq-listener-container' element. 2015-04-14 14:23:00 -07:00
John Blum
be1bff643c SGF-399 - Fix incorrect XSD appinfo annotation, expected 'type' attribute value on the 'error-handler' attribute of the 'cq-listener-container' element. 2015-04-14 14:15:19 -07:00
John Blum
f27a9e9cf6 SGF-399 - Fix incorrect XSD appinfo annotation, expected 'type' attribute value on the 'error-handler' attribute of the 'cq-listener-container' element. 2015-04-14 14:14:57 -07:00
John Blum
0e21021cf6 SGF-399 - Fix incorrect XSD appinfo annotation, expected 'type' attribute value on the 'error-handler' attribute of the 'cq-listener-container' element. 2015-04-14 14:14:52 -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