Commit Graph

78 Commits

Author SHA1 Message Date
John Blum
9821a1e277 Update Copyright for 2022. 2022-03-02 16:16:01 -08:00
John Blum
55b8ca5373 Annotate Spring Geode Sample test classes with Spring Test Framework's @DirtiesContext annotation to avoid test conflicts. 2021-03-30 11:58:39 -07:00
John Blum
52d873cac1 Cleanup Gradle build files.
Remove commented out configuration.

Remove 'org.springframework.geode:spring-geode-starter-logging' module from the runtiem classpath in the Multi-Site Caching Sample.
2020-12-11 13:22:19 -08:00
John Blum
03fb54d83a Upgrade to Freefair Lombok Gradle Plugin 5.3.0. 2020-12-09 12:56:04 -08:00
John Blum
a840c6a18d Polish the Async Inline Caching Sample Guide based on review and feedback.
Add (URL) links to the Sample Guide and Code Example in the 'Asynchronous Inline Caching' section of the 'Caching with Apache Geode' chapter in the reference documentation.

Correct the Code Example URL in the samples.adoc for the Asynchronous Inline Caching Sample.
2020-12-09 11:21:13 -08:00
John Blum
1a33f03e3a Edit and complete the Async Inline Caching Sample Guide.
Refactor the Async Inline Caching Sample Code to include (Asciidoc) documentation markers.

Change the batch time interval in the AEQ batch-size configuration/strategy bean definition to 15 minutes.

Rename the GolfTournament created in the SpringBootApplication class to 'The Masters'.

Refactor the isFinished(..) and isNotFinished() methods in the PgaTourService class to accept a nullable GolfTournament argument.

Refactor the GolferController class to declare the REST API web service endpoints to use '/api/golf/tournament/' as the base Webapp context.
2020-12-09 01:09:29 -08:00
John Blum
e32fc75643 Replace the use of the deprecated 'bootJar' Gradle task, 'mainClassName' property with 'mainClass'. 2020-12-08 09:44:19 -08:00
John Blum
f4eec7724d Add compile-only dependency on findbugs in the Async Inline Caching Sample to avoid the compiler warning 'unknown enum constant When.MAYBE'. 2020-12-07 22:17:31 -08:00
John Blum
a61c28f525 Refactor the Async Inline Caching Spring Geode Sample Spring Boot application (code).
Change the default AEQ batch size to 25 and enable AEQ batch conflation.

Synchronize the Set of players (Golfers) and List of Pairings in the GolfTournament class.

Add a getPlayers() method to the GolfTournament class returning the Golfers registered to play in the GolfTournament.

Simply the isFinished() method in the GolfTournament class.

Add the in(:Golfer) and signScorecard() methods to the GolfTournament.Pairing class.

Rename the GolfTournamentService class to PgaTourService.

Rename the GolfTournamentController class to GolferController.
2020-12-07 22:17:42 -08:00
John Blum
e515149bc5 Combine the cache-view.html and database-view.html into the golf-tournament-view.html for the Async Inline Caching Sample Spring Boot application. 2020-12-07 22:17:31 -08:00
John Blum
dab156e73a Add a (Web) UI to the Async Inline Caching Sample Spring Boot application (code). 2020-12-07 22:15:17 -08:00
John Blum
3342f32263 Refactor the Async Inline Caching Sample code.
Change the @EnableCachingDefinedRegions annotation, serverRegionShortcut attribute to RegionShortcut.REPLICATE. AEQs cannot be configured for 'LOCAL' Regions.

Import the new AsyncInlineCachingRegionConfiguration declaring the Golfers Region and Template for the Peer Cache application configuration arrangement.

Add 'spring.autoconfigure.exclude' on Spring Data Geode Repositories Auto-Configuration in application-server.properties.

Add AsyncInlineCachingRegionConfiguration class explicilty declaring a 'Golfers' REPLICATE Region bean and a SD Template for the 'Golfers' Region.

Remove the @Region mapping anotation declaration from the Golfer model class.

Fix bug in the GolfCourse.withHole(..) builder method to 'add' to the List of holes rather than 'set' the par for hole, which leads to an IndexOutOfBoundsException.

Replace the custom, private 'nullSafeMap(:Map)' and 'sort(:List)' methods with SDG's CollectionUtils class methods in the GolferService class.

Change the 'Schedule' for the GolfTournamentService class, play() method to have an initialDelay of 5 seconds.
2020-12-07 22:15:17 -08:00
John Blum
dc7d35706c Edit Javadoc in Async Inline Caching Sample code.
Use SDG's CollectionUtils class instead of Apache Shiro's CollectionUtils class in the GolfCourse model class.

Implement the toString() method in terms of the GolfTournament 'name'.
2020-12-07 22:15:17 -08:00
John Blum
770b99f1e2 Extend o.s.d.g.tests.integration.IntegrationTestsSupport. 2020-12-01 17:12:45 -08:00
John Blum
93bd2b97df Add Integration Tests for Spring Geode Sample on Async Inline Caching configured with Queue Batch Time Interval. 2020-12-01 17:00:22 -08:00
John Blum
1086895f8f Add Integration Tests for Spring Geode Sample on Async Inline Caching configured with Queue Batch Size. 2020-12-01 16:59:22 -08:00
John Blum
ad77707d6f Create base Spring Geode Sample Example application on Async Inline Caching. 2020-12-01 16:58:30 -08:00
John Blum
09d15e87c2 Upgrade to FreeFair Lombok Gradle Plugin 5.2.1. 2020-09-18 02:33:58 -07:00
John Blum
b40975c2c1 Adapt to Properties configuration changes in Spring Boot 2.4.0-SNAPSHOT.
See Spring Boot Issues related to Spring Profiles: https://github.com/spring-projects/spring-boot/labels/theme%3A%20profiles

And: https://github.com/spring-projects/spring-boot/labels/theme%3A%20config-data
2020-07-28 19:33:40 -07:00
John Blum
5994d6b6a3 Upgrade to FreeFair Lombok Gradle Plugin 5.1.0. 2020-06-10 23:48:29 -07:00
John Blum
6253000ee5 Annotate the Look-Aside Caching GeodeConfiguration class with the @EnableClusterAware annotation.
Remove the explicit 'clientRegionShortcut' configuration from the @EnableCachingDefinedRegions annotation specifying a client 'LOCAL' Region.
2020-05-18 00:41:24 -07:00
John Blum
898b3351fa Configure the 'bootRun' Gradle Task to run the Look-Aside Caching example. 2020-05-18 00:39:37 -07:00
John Blum
050679d7cf Add application.properties for the Look-Aside Caching example to configure the Spring application name and GemFire/Geode log-level.
Edit Javadoc.
2020-05-18 00:32:47 -07:00
John Blum
edeb05ab70 Configure the 'bootRun' Gradle Task to run the Inline Caching example. 2020-05-18 00:19:54 -07:00
John Blum
fdff3b354a Configure the 'bootRun' Gradle Task to run the HttpSession Caching example. 2020-05-18 00:16:05 -07:00
John Blum
9900541cfe Set the 'spring.application.name' property to 'InlineCachingApplication'. 2020-05-18 00:05:29 -07:00
John Blum
c3dc0336cf Configure the 'spring.data.gemfire.cache.log-level' property in terms of 'gemfire.log-level' and default to 'error'. 2020-05-18 00:03:46 -07:00
John Blum
11222e249d Change Integer.valueOf(..) call to Integer.parseInt(..). 2020-05-18 00:01:04 -07:00
John Blum
fda6362f00 Annotate the BootGeodeHttpSessionCachingApplication class with the @EnableClusterAware annotation.
Remove the 'Sessions' Region data policy configuration from application.properties.
2020-05-17 23:54:46 -07:00
John Blum
e4194d400b Add additional Asciidoc tags to capture the entire WAN Gateway configuration for documentation (guide) purposes.
Resolves gh-80.
2020-04-19 16:57:31 -07:00
John Blum
1173803b4f Add Asciidoc tags to the Multi-Site Caching example source code for documentation (guide) purposes.
Resolves gh-80.
2020-04-17 12:47:08 -07:00
John Blum
8b1d862fb5 Improve Multi-Site (WAN) Caching Sample Integration Tests resiliency.
Include an additional Spring @Configuration class exclusively for testing that registers a Geode CacheListener to wait for the cache Region EntryEvent to occur.  When the ClientCache Registers Interest (all keys) and receives the cache Region (CustomersByName) EntryEvent, then it signifies the WAN Gateways (Sender and Receiver) has replicated the Region EntryEvent between disparate sites.  Client 1 creates the Region EntryEvent that Client 2 expects to see in its cache.

Resolves gh-80.
2020-04-17 12:46:36 -07:00
John Blum
138a8c961d Remove unnecessary @ClientCacheApplication annotation declaration from GeodeClientConfiguration class.
SBDG auto-configures a ClientCache instance by default!

Annotate the GeodeClientConfiguration class with @Configuration.

Resolves gh-80.
2020-04-17 12:46:36 -07:00
John Blum
0efed96dcd Add example code for Multi-Site Caching Sample.
Resolves gh-80.
2020-04-15 22:54:46 -07:00
John Blum
665355aa92 Upgrade to FreeFair Lombok Gradle Plugin 5.0.0-rc2. 2020-02-22 23:50:31 -08:00
John Blum
8447eaad10 Update Copyright to 2020. 2020-02-19 23:04:23 -08:00
John Blum
952b7554ab Remove use of internal Apache Geode API o.a.g.internal.concurrent.ConcurrentHashSet class.
Replace with java.util.HashSet wrapped with java.util.Collections.synchronizedSet(:Set).

Resolve gh-70.
2020-01-24 21:07:48 -08:00
John Blum
924b1d7f89 Upgrade to Lombok Gradle Plugin 4.1.6. 2020-01-16 18:56:19 -08:00
John Blum
afbbfe9991 Upgrade to FreeFair Lombok Gradle Plugin 4.1.2. 2019-10-17 15:46:10 -07:00
John Blum
8e30b4ddd2 Improve CQ Auto-configuration by assessing the availability of a server or cluster first before enabling and auto-configuring CQ functionality.
This added capabilities relies on the new ClusterAwareConditions.

Resolves gh-53.
2019-09-12 14:28:59 -07:00
John Blum
bc6e423ed0 Disable SSL auto-configuration for all Spring Geode Sample tests. 2019-09-10 01:12:35 -07:00
John Blum
202e59b9d2 Edit Javadoc; Optimize imports. 2019-09-09 11:35:56 -07:00
John Blum
9b34604482 Rename test class to be descriptive about testing the Look-Aside Caching Pattern. 2019-08-23 00:30:12 -07:00
John Blum
1d02bae14b Change home page Web Service endpoint from ping() to description, 'Inline Caching Example'. 2019-08-23 00:28:29 -07:00
John Blum
93c50ba621 Add home page Web Service endpoint with description, 'Look-Aside Caching Example'. 2019-08-23 00:25:30 -07:00
John Blum
ab85124b69 Remove unnecessary 'org.springframework.boot:spring-boot-starter-jetty' runtime dependency. 2019-08-23 00:22:52 -07:00
John Blum
82881e2f73 Switch direct [test] compile dependency on 'org.springframework.data:spring-data-geode-test' to 'spring-geode-starter-test'. 2019-08-23 00:18:54 -07:00
John Blum
5c5032e4a2 Exclude the 'javax.servlet:javax.servlet-api' transitive dependency from 'geode-core'.
Exclude the 'javax.servlet:javax.servlet-api' transitive dependency except from in the 'spring-geode-starter-session' and 'spring-gemfire-starter-session' modules.

Remove unnecessary 'javax.servlet:javax.servlet-api' provided dependency in 'spring-geode-autoconfigure'.

Remove unnecessary 'org.springframework.boot:spring-boot-starter-tomcat' runtime dependency from 'spring-geode-samples-caching-httpsession'.

Remove unnecessary 'javax.cache:cache-api' and 'org.springframework.shell:spring-shell' runtime dependencies from 'spring-geode-samples-caching-inline'.

Remove unnecessary 'javax.cache:cache-api' and 'org.springframework.shell:spring-shell' runtime dependencies from 'spring-geode-samples-caching-lookaside'.

Remove unnecessary 'javax.cache:cache-api' runtime dependency from 'spring-geode-samples-caching-near'.

Resolves gh-47.
2019-08-22 22:46:26 -07:00
John Blum
f2a88d7f0b Remove exclusion on 'org.apache.logging.log4j:log4j-to-slf4j'.
Add exclusion on 'org.apache.logging.log4j:log4j-core.'

Resolves gh-42.
2019-08-21 11:56:32 -07:00
John Blum
c1ca997b56 Remove exlusion on 'org.apache.logging.log4j:log4j-to-slf4j' and add exclusion on 'org.apache.logging.log4j:log4j-core'.
Resolves gh-42.
2019-08-21 11:56:32 -07:00