Commit Graph

145 Commits

Author SHA1 Message Date
John Blum
d865b2ee22 Move Spring Geode Security Sample test class to the example.app.security.tests package.
Declare both SBDG security auth and SSL environment post-proccessor enabled properties.
2021-04-09 12:43:08 -07:00
John Blum
d07143467e Annotate Spring Geode Sample test classes with Spring Test Framework's @DirtiesContext annotation to avoid test conflicts. 2021-04-09 12:42:23 -07:00
John Blum
9cdb4ca7f3 Set SBDG security SSL property to ensure auto-configuration of SSL is enabled and takes effect. 2021-04-09 12:40:32 -07:00
John Blum
928c6becc6 Annotate Spring Geode Security Sample test class with Spring's @DirtiesContext annotation.
This test uses GemFire/Geode SSL configuration and therefore needs to mark the ApplicationContext as dirty.
2021-04-09 12:32:10 -07:00
John Blum
1c5bd3b863 Upgrade Spring Geode Samples parent Maven POM to Spring Boot 2.4.3. 2021-02-22 19:51:21 -08:00
John Blum
fb9cadf0b0 Upgrade Spring Geode Samples using Maven POM to Spring Boot 2.4.3-SNAPSHOT. 2021-01-24 21:30:59 -08:00
John Blum
a59b2097bc Adapt to (internal) API changes in Apache Geode 1.13.1.
These changes are unavoidable at the momment given Apache Geode hides critical functionality (e.g. SSL config) behind an (so-called) 'internal' API.
2021-01-12 18:39:36 -08:00
John Blum
904743deaa Upgrade to org.springframework.boot:spring-boot-starter-parent:2.4.1. 2021-01-12 18:38:24 -08: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
e7b1501e78 Set Spring Boot version to 2.4.0-SNAPSHOT in Samples Maven POM. 2020-11-17 21:28:28 -08:00
John Blum
67f3fcb9c6 Upgrades Getting Started Sample Maven POM to Spring Boot 2.4.0-M4. 2020-10-21 13:11:09 -07:00
John Blum
09d15e87c2 Upgrade to FreeFair Lombok Gradle Plugin 5.2.1. 2020-09-18 02:33:58 -07:00
John Blum
2aaaea76bf Remove exclude from Apache Geode dependencies on 'org.apache.logging.log4j:log4j-core'.
Resolves gh-48.
2020-09-18 02:33:58 -07:00
John Blum
74c4bdbcd9 Remove exclude from Apache Geode dependencies on 'javax.servlet:javax.servlet-api'.
Resolves gh-49.
2020-09-18 02:33:58 -07:00
John Blum
d1147415c2 Remvove all properties (configuration file) references to 'Pivotal GemFire' or 'GemFire' in general. 2020-09-17 21:28:48 -07:00
John Blum
f422beb8f1 Set 'spring-boot-starter-parent' dependency to 2.4.0-SNAPSHOT. 2020-09-03 18:57:25 -07:00
John Blum
4cfef1516f Upgrade Sample Maven POMS to Spring Boot 2.4.0-M2 and SBDG 1.4.0-SNAPSHOT. 2020-08-18 01:05:24 -07:00
John Blum
b04246246b Remove 'spring.data.gemfire.management.use-http' property configuration and JVM argument for Boot client.
The 'spring.data.gemfire.management.use-http' property was set in application.properties.
2020-08-12 13:41:11 -07:00
John Blum
305ca74262 Fix HTTP URL to Apache Shiro's project sit in Javadoc. 2020-08-07 15:50:27 -07:00
John Blum
0e55c44570 Switch from System.err message output to using a SLF4J Logger.
Resolves gh-81.
2020-08-07 15:21:02 -07:00
John Blum
093083be95 Polish Security Sample Tests.
Resolves gh-81.
2020-08-07 15:04:43 -07:00
John Blum
bb8c9a5b81 Polish Security Sample Code.
Resolves gh-81.
2020-08-07 15:04:43 -07:00
Patrick Johnson
16abdea031 Add Security Sample Guide and Code.
Resolves gh-81.
2020-08-07 15:04:43 -07:00
John Blum
c2f1ae3e92 Set 'spring.data.gemfire.management.use-http' property to 'false'. 2020-08-07 15:04:15 -07:00
John Blum
71746afb53 Change Getting Started Sample artifact version to 1.4.0-SNAPSHOT matching the project version. 2020-08-04 15:46:54 -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
36fac32d9c Upgrade Sample Guides, Maven POM build files to Spring Boot 2.3.1.RELEASE.
Sets SBDG version to 1.3.1.BUILD-SNAPSHOT.
2020-07-27 01:11:05 -07:00
John Blum
5ca11cbc44 Declare 'com.google.code.findbugs:jsr305' as a compileOnly/testCompileOnly depedency to cleanup Gradle build warnings.
Without this dependency the Gradle build logs warnings about:

> Task :spring-geode-autoconfigure:compileTestJava
warning: unknown enum constant When.MAYBE
  reason: class file for javax.annotation.meta.When not found
...
2020-07-23 14:57:01 -07:00
John Blum
5994d6b6a3 Upgrade to FreeFair Lombok Gradle Plugin 5.1.0. 2020-06-10 23:48:29 -07:00
John Blum
75b7362737 Upgrade to Spring Boot 2.3.0.RELEASE in SBDG Samples parent Maven POM. 2020-05-22 01:39:16 -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