Class DataStoreCacheUpgradeUtils
- java.lang.Object
-
- org.apache.jackrabbit.oak.plugins.blob.DataStoreCacheUpgradeUtils
-
public class DataStoreCacheUpgradeUtils extends java.lang.Object
Utility methods to upgrade Old DataStore cacheCachingDataStore
.
-
-
Constructor Summary
Constructors Constructor Description DataStoreCacheUpgradeUtils()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static void
moveDownloadCache(java.io.File path)
Move the DataStore downloaded cache files to the appropriate folder used by the new cacheFileCache
static void
movePendingUploadsToStaging(java.io.File homeDir, java.io.File path, boolean deleteMap)
Move the pending uploads read from the de-serialized map to the appropriate directory used by theUploadStagingCache
.static void
upgrade(java.io.File homeDir, java.io.File path, boolean moveCache, boolean deleteMap)
Upgrades theCachingDataStore
.
-
-
-
Method Detail
-
moveDownloadCache
public static void moveDownloadCache(java.io.File path)
Move the DataStore downloaded cache files to the appropriate folder used by the new cacheFileCache
- Parameters:
path
- the root of the datastore
-
movePendingUploadsToStaging
public static void movePendingUploadsToStaging(java.io.File homeDir, java.io.File path, boolean deleteMap)
Move the pending uploads read from the de-serialized map to the appropriate directory used by theUploadStagingCache
.- Parameters:
homeDir
- the repository home directorypath
- the root of the datastoredeleteMap
- flag indicating whether to delete the pending upload map after upgrade
-
upgrade
public static void upgrade(java.io.File homeDir, java.io.File path, boolean moveCache, boolean deleteMap)
Upgrades theCachingDataStore
.- Parameters:
homeDir
- the repository home directorypath
- the root of the datastoremoveCache
- flag whether to move the downloaded cache filesdeleteMap
- flag indicating whether to delete the pending upload map after upgrade
-
-