Class DataStoreCacheUpgradeUtils

java.lang.Object
org.apache.jackrabbit.oak.plugins.blob.DataStoreCacheUpgradeUtils

@Deprecated(since="2024-09-23") public class DataStoreCacheUpgradeUtils extends Object
Deprecated.
The Jackrabbit Oak Blob Plugins library is designed for Oak-internal use only and thus deprecated. It will not be part of the AEM SDK after April 2025.
Utility methods to upgrade Old DataStore cache CachingDataStore.
  • Constructor Details

    • DataStoreCacheUpgradeUtils

      public DataStoreCacheUpgradeUtils()
      Deprecated.
  • Method Details

    • moveDownloadCache

      public static void moveDownloadCache(File path)
      Deprecated.
      Move the DataStore downloaded cache files to the appropriate folder used by the new cache FileCache
      Parameters:
      path - the root of the datastore
    • movePendingUploadsToStaging

      public static void movePendingUploadsToStaging(File homeDir, File path, boolean deleteMap)
      Deprecated.
      Move the pending uploads read from the de-serialized map to the appropriate directory used by the UploadStagingCache.
      Parameters:
      homeDir - the repository home directory
      path - the root of the datastore
      deleteMap - flag indicating whether to delete the pending upload map after upgrade
    • upgrade

      public static void upgrade(File homeDir, File path, boolean moveCache, boolean deleteMap)
      Deprecated.
      Upgrades the CachingDataStore.
      Parameters:
      homeDir - the repository home directory
      path - the root of the datastore
      moveCache - flag whether to move the downloaded cache files
      deleteMap - flag indicating whether to delete the pending upload map after upgrade