Commit Graph

571 Commits

Author SHA1 Message Date
John Blum
b4ecdf2cc1 SGF-497 - Intermittent failures in DurableClientCacheIntegrationTest
(cherry picked from commit 9c47e4b61765093e048dfd23a76b0df394c457f7)
Signed-off-by: John Blum <jblum@pivotal.io>
2016-05-16 18:16:30 -07:00
John Blum
b42442d9cd SGF-498 - Fix apache-geode build due to recent changes in Apache Geode that removed the SharedConfiguration.destroySharedConfiguration() method from the API. 2016-05-08 18:23:43 -07:00
John Blum
54befa0522 SGF-493 - Remove unnecessary GemFire/Geode version checks. 2016-05-05 14:04:13 -07:00
John Blum
f904f6ad86 SGF-490 - Re-instate GemFire WAN and CQ functionality. 2016-04-25 21:36:20 -07:00
John Blum
fd41003805 SGF-372 - Add GemFire Off-Heap support. 2016-04-24 15:48:31 -07:00
John Blum
4479e5a1a5 SGF-489 - Update Spring Data and 3rd party dependencies. 2016-04-24 14:37:27 -07:00
John Blum
7ef14587e2 SGF-476 - Polish Spring (Data GemFire) provided, GemFire ServerLauncherCacheProvider implementation and tests.
Closes #87.
2016-03-29 18:16:20 -07:00
John Blum
33e8d9ec5e SGF-476 - Support bootstrapping a Geode server after Geode removes SDG dependency - GEODE-1025. 2016-03-29 17:13:48 -07:00
John Blum
2465e5f678 SGF-416 - Add additional integration test testing the interaction between a client and server when Pool configuration is used to only initialize the DEFAULT Pool used by the PROXY client Region.
(cherry picked from commit 22dc8a601767fa8ec532b5ca77f0fed2e07320bd)
Signed-off-by: John Blum <jblum@pivotal.io>
2016-03-29 16:47:36 -07:00
John Blum
0820482818 SGF-416 - Remove deprecated code associated with syncing GemFire properties between the ClientCache and Pool.
(cherry picked from commit a0c5ecad62917ccb71e856dae8e3743641f7d76e)
Signed-off-by: John Blum <jblum@pivotal.io>
2016-03-29 16:47:24 -07:00
John Blum
9eb4ab24bf SGF-416 - Add additional unit and integration tests.
(cherry picked from commit e611c520c72e61f44faa25dafa48c849036c84b6)
Signed-off-by: John Blum <jblum@pivotal.io>
2016-03-29 16:47:10 -07:00
John Blum
7c0d3a72a6 SGF-416 - Avoid eager creation of a GemFire DistributedSystem in the PoolFactoryBean by creating a ClientCache first.
(cherry picked from commit 127b62e7220f94e07ed2e46e46b90e5017dde80d)
Signed-off-by: John Blum <jblum@pivotal.io>
2016-03-16 19:36:13 -07:00
John Blum
46220a15dc SGF-479 - Remove lazy initialization option for configuring a GemFire cache.
(cherry picked from commit b052f0ac8dadb5e5e676d7b7d363e94733992c0e)
Signed-off-by: John Blum <jblum@pivotal.io>
2016-03-16 19:17:52 -07:00
John Blum
bf3adcb3ee SGF-480 - Change default for use-bean-factory-locator to false.
(cherry picked from commit 6bf5ceeaf672aeede3e8927248d7bd8d045825cb)
Signed-off-by: John Blum <jblum@pivotal.io>
2016-03-16 19:13:30 -07:00
John Blum
a0c8950e1f SGF-475 - Add additional logging to the MappingPdxSerializer.
(cherry picked from commit 6dfd3e7082628f4c05da951ff760861ebb242899)
Signed-off-by: John Blum <jblum@pivotal.io>
2016-03-01 16:03:53 -08:00
Dan Smith
4272216552 SGF-476 - Implement ServerLauncherCacheProvider to launch geode with spring.
Geode has removed the direct dependency on spring data gemfire in favor
of using a ServiceLoader to allow overriding the behavior of geode's server
launcher start behavior. Implementing the ServerLauncherCacheProvider
interface to allow SDG to override the server launcher behavior to parse
a spring xml file, if present.
2016-03-01 15:43:00 -08:00
John Blum
b68c1f450c SGF-469 - Add support for CDI.
(cherry picked from commit 34da7ec91044c9f01647d444ccbe12ed890b4cc6)
Signed-off-by: John Blum <jblum@pivotal.io>
2016-02-26 18:15:16 -08:00
John Blum
4cdd9a04ba SGF-474 - Fix the NPE in the MappingPdxSerializer
(cherry picked from commit 53a1fc217afc0e682ef75573e98e0d84e4acbd85)
Signed-off-by: John Blum <jblum@pivotal.io>
2016-02-25 13:27:28 -08:00
John Blum
90135855c1 SGF-473 - Fix CI build test failures.
(cherry picked from commit adaf6903d7a177dc63fff888121cd9060e949aba)
Signed-off-by: John Blum <jblum@pivotal.io>
2016-02-17 00:57:31 -08:00
John Blum
f0d5b7cf25 SGF-473 - Allow a Spring-configured ClientCache to be constructed without a Pool.
(cherry picked from commit b385dbc25e6554e023c416f02ad8f69b9c6d3f11)
Signed-off-by: John Blum <jblum@pivotal.io>
2016-02-16 19:23:53 -08:00
John Blum
f24d8e9865 SGF-468 - Improve coordination between the PoolFactoryBean and ClientCacheFactoryBean when configuring and resolving the GemFire DistributedSystem.
(cherry picked from commit 770038a3aa20c4a989689a5883f98716b4d925aa)
Signed-off-by: John Blum <jblum@pivotal.io>
2016-02-03 13:23:24 -08:00
John Blum
83023a4425 SGF-459 - Add support for the get(key:Object, valueLoader:Callable) method in Spring Framework 4.3's Cache interface.
(cherry picked from commit 1b11b912f53b90df7b18fc40e070155096d3648e)
Signed-off-by: John Blum <jblum@pivotal.io>
2016-02-02 00:09:45 -08:00
John Blum
a6ab1cf804 SGF-458 - Enable resolution of GemFire's DistributedSystem and System properties to be overridden in PoolFactoryBean.
(cherry picked from commit 10fadc0d9a92d007a7bff85045c5169f2d8797f7)
Signed-off-by: John Blum <jblum@pivotal.io>
2016-01-08 20:00:30 -08:00
Jens Deppe
03fa75736c SGF-455 - Simplified registration for shared GemfireMappingContext for repositories.
A <gemfire:repositories /> now registers a single bean definition for a GemfireMappingContext that gets wired to the GemfireRepositoryFactoryBean instances registered within the system unless an explicit mapping context is referenced.

The GemfireRepositoryFactoryBean now checks a GemfireMappingContext being registered and rejects to start without one. The same applies to GemfireRepositoryFactory.

Related tickets: SGF-448, SGF-449, SGF-450.
(cherry picked from commit 34665d16ec543e85afcde174194ba5fbff44b841)
2015-12-31 09:04:02 -08:00
Jens Deppe
ef99a04be8 SGF-454 - Adapted to API changes in Spring Data Commons.
Related tickets: DATACMNS-89.
(cherry picked from commit 6ad886ffaefc41b2bc9b014aee6acbc0ad9039ac)
2015-12-31 08:41:14 -08:00
Jens Deppe
693a2e89c3 SGF-447 - Fix Spring Data GemFire due to recent changes to Apache Geode that removed various internal utility classes in favor of external Spring classes.
(cherry picked from commit 042af996e69c87e936f34003e02c826470ef41ab)
2015-12-30 16:57:38 -08:00
John Blum
8590f2c222 SGF-450 - GemfireRepositoryFactoryBean needs to explicitly register the default GemfireMappingContext when not explicitly defined as a bean in the application's Spring context.
(cherry picked from commit eebe7bb6229a13f70ce7ab8d26798138038f9db7)
Signed-off-by: John Blum <jblum@pivotal.io>
2015-12-03 19:13:28 -08:00
John Blum
a17efd4d5b SGF-449 - GemfireRepositoryFactoryBean.setGemfireMappingContext needs to call RepositoryFactoryBeanSupport.setMappingContext.
(cherry picked from commit 37d41a1ed2166a5296e43d2778511fd3131e4510)
Signed-off-by: John Blum <jblum@pivotal.io>
2015-12-03 19:13:18 -08:00
John Blum
c7b45af48e SGF-448 - GemfireRepositoryConfigurationExtension needs to override the RepositoryConfigurationExtensionSupport postProcess(:BeanDefinitionBuilder, :AnnotationRepositoryConfigurationSource) method.
(cherry picked from commit cf64807b095637fea43ec00acfaa1204cdedd8cb)
Signed-off-by: John Blum <jblum@pivotal.io>
2015-12-03 19:12:58 -08:00
Jens Deppe
251199a5cc SGF-447: Replace GemFire internal StringUtils with Spring standard StringUtils 2015-11-30 07:52:20 -08:00
Jens Deppe
db3a594903 SGF-444 - Fix Spring Data GemFire apache-geode build due to recent changes to Apache Geode that moved Lucene into a separate module 2015-11-13 09:24:06 -08:00
John Blum
919d86093d SGF-443 - Fix Spring Data GemFire apache-geode build due to recent changes to Apache Geode that removed the HDFS support. 2015-10-28 11:33:25 -07:00
John Blum
a6b1189db6 SGF-441 - Fix possible CacheClosedException in ClientCacheFactoryBean onApplicationEvent(:ContextRefreshedEvent) when the ClientCache initialization is lazy.
(cherry picked from commit f645e7d1a4ea1954c21aa2416b46669d97f4e18d)

Signed-off-by: John Blum <jblum@pivotal.io>
2015-10-18 00:39:00 -07:00
John Blum
8cc93f72a0 SGF-440 - Optimize imports across the SDG codebase.
(cherry picked from commit af343a45fa57a9580a5942de8c091c680adea87b)

Signed-off-by: John Blum <jblum@pivotal.io>
2015-10-16 13:07:30 -07:00
John Blum
09d44bb99b SGF-438 - Make <gfe:client-cache>, 'ready-for-events' true the default for durable clients.
(cherry picked from commit 0514a6b5e84f43cd6717097c52141ce5c698bf99)

Signed-off-by: John Blum <jblum@pivotal.io>
2015-10-16 08:40:08 -07:00
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
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
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
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