public class DataStoreCacheUpgradeUtils extends Object
CachingDataStore.| Constructor and Description |
|---|
DataStoreCacheUpgradeUtils() |
| Modifier and Type | Method and Description |
|---|---|
static void |
moveDownloadCache(File path)
Move the DataStore downloaded cache files to the appropriate folder used by the new cache
FileCache |
static void |
movePendingUploadsToStaging(File homeDir,
File path,
boolean deleteMap)
Move the pending uploads read from the de-serialized map to the appropriate directory
used by the
UploadStagingCache. |
static void |
upgrade(File homeDir,
File path,
boolean moveCache,
boolean deleteMap)
Upgrades the
CachingDataStore. |
public static void moveDownloadCache(File path)
FileCachepath - the root of the datastorepublic static void movePendingUploadsToStaging(File homeDir, File path, boolean deleteMap)
UploadStagingCache.homeDir - the repository home directorypath - the root of the datastoredeleteMap - flag indicating whether to delete the pending upload map after upgradepublic static void upgrade(File homeDir, File path, boolean moveCache, boolean deleteMap)
CachingDataStore.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 upgradeCopyright © 2012–2017 The Apache Software Foundation. All rights reserved.