Commit Graph

14 Commits

Author SHA1 Message Date
John Blum
9821a1e277 Update Copyright for 2022. 2022-03-02 16:16:01 -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