Class GrouperCacheDatabase

java.lang.Object
edu.internet2.middleware.grouper.cache.GrouperCacheDatabase

public class GrouperCacheDatabase extends Object
use the database to clear caches in jvms
  • Constructor Details

    • GrouperCacheDatabase

      public GrouperCacheDatabase()
  • Method Details

    • ehcacheRegisterDatabaseClearableCache

      public static void ehcacheRegisterDatabaseClearableCache(String ehcacheName)
      register a cache for database clearable. Note you cant register one that is already there
      Parameters:
      name -
    • customNotifyDatabaseOfChanges

      public static void customNotifyDatabaseOfChanges(String customCacheName)
    • ehcacheNotifyDatabaseOfChanges

      public static void ehcacheNotifyDatabaseOfChanges(String ehcacheName)
    • notifyDatabaseOfCacheUpdate

      public static void notifyDatabaseOfCacheUpdate(String cacheName)
      Parameters:
      cacheName - name of cache to clear
    • notifyDatabaseOfCacheUpdate

      public static void notifyDatabaseOfCacheUpdate(String cacheName, boolean updateLastUpdatedNanos)
      Parameters:
      cacheName - name of cache to clear
      updateLastUpdatedNanos - false to allow the current jvm to also receive the notification
    • clearCacheFromDatabase

      public static boolean clearCacheFromDatabase(String cacheNameWithPrefix)
      Parameters:
      cacheNameWithPrefix - name of cache to clear
      Returns:
      true if cache
    • retrieveFull

      public static void retrieveFull(boolean forStartup)
      Parameters:
      forStartup - is true if not affecting caches, just do a full pull
    • stopThread

      public static void stopThread()
    • startThreadIfNotStarted

      public static void startThreadIfNotStarted()
    • customRegisterDatabaseClearable

      public static void customRegisterDatabaseClearable(String cacheName, GrouperCacheDatabaseClear grouperCacheDatabaseClear)
      register custom cache clearable
      Parameters:
      cacheName -
      grouperCacheDatabaseClear -
    • retrieveIncremental

      public static void retrieveIncremental()