Commit Graph

571 Commits

Author SHA1 Message Date
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
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
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
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
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
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
cbb1314b5c SDG-398 - Provide early support of Apache Geode (Pivotal GemFire OSS).
Modified the SDG apache-geode build to resolve Apache Geode artifacts from the Apache Maven Repo instead of Spring's Maven Repo.  Performed minor code modifications based on the 'latest' Apache Geode build snapshot.  Modified the generated SDG Maven POM to declare the Apache Maven Snapshot Repo in order to properly resolve the Apache Geode build snapshot artifacts.
2015-06-04 23:58:54 -07:00
John Blum
6ba90d8048 SGF-398 - Provide early support of Apache Geode (Pivotal GemFire OSS).
Additional test cleanup related to Pivotal GemFire specific features (e.g. WAN).
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
aa706b025c SGF-398 - Provide early support of Apache Geode (Pivotal GemFire OSS).
Test source compilation and test resource processing build step complete.
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
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
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