-
Notifications
You must be signed in to change notification settings - Fork 354
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
* Change CacheServiceLoader to support multiple caches and change Store and Properties classes to use these * Modify Federated Store to work with new cache approach. Includes removing redundant inheritance from FederatedStoreCache. * Fix Federated Store tests. Mostly changes to use FederatedStoreProperties instead of general properties and remove usage of empty properties * Fix checking of deprecated property. Also allow new property in deprecated method * Remove use of old CacheServiceLoader initialise method from tests * Remove use of deprecated CacheServiceLoader getService method from tests * Replace use of deprecated CacheServiceLoader.isEnabled * Remove direct use of Cache Service from FederatedGraphStorage Also fix missing generics in Cache.java * Replace use of deprecated CACHE_SERVICE_CLASS field * Remove duplicate field identical to existing field and use static import instead * Deprecated old CacheServiceLoader Test * Rename old CacheServiceLoader Test * Add new test for CacheServiceLoader Change log4j test settings for cache module to show DEBUG messages * Improve warning for when a subgraph tries to set cache class The previous approach replaced the class but this wasn't required as re-initialising was already ignored. Now it warns with more details. * Replace use of old default cache class property in all properties files * Replace use of deprecated cache service class setter method * Improve Javadoc for Federated Store Cache classes * Remove duplicate cache class string fields in Federated Store tests * Remove unreachable code relating to missing cache class in Federated Store Improve handling to set the missing cache property instead of behaving as if it was * Move all cache properties into CacheProperties.java * Improve test coverage for new changes * Add test to cover separate cache initialisation in Store * Fix Store.java typo and improve logic * Simplify FederatedStorePropertiesTest * PR Comment - Use only AssertJ in CacheTest.java * Fix changes * Fix typo * PR Comment - Remove 'public' from new unit test class methods * Add new field to Store containing cache interface objects These can be used to access these caches without repeatly recreating the Cache objects elsewhere or trying to get the Service directly * Change FederatedGraphStorage to get caches from Store instead of creating them and add a new test for multiple cache instances
- Loading branch information
1 parent
a8134c9
commit c5b4c5a
Showing
83 changed files
with
1,450 additions
and
508 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.