Class DataStoreCacheUpgradeUtils
java.lang.Object
org.apache.jackrabbit.oak.plugins.blob.DataStoreCacheUpgradeUtils
Utility methods to upgrade Old DataStore cache
CachingDataStore.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidmoveDownloadCache(File path) Move the DataStore downloaded cache files to the appropriate folder used by the new cacheFileCachestatic voidmovePendingUploadsToStaging(File homeDir, File path, boolean deleteMap) Move the pending uploads read from the de-serialized map to the appropriate directory used by theUploadStagingCache.static voidUpgrades theCachingDataStore.
-
Constructor Details
-
DataStoreCacheUpgradeUtils
public DataStoreCacheUpgradeUtils()
-
-
Method Details
-
moveDownloadCache
Move the DataStore downloaded cache files to the appropriate folder used by the new cacheFileCache- Parameters:
path- the root of the datastore
-
movePendingUploadsToStaging
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
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
-