public class PersistenceUtil extends Object
| Modifier and Type | Field and Description |
|---|---|
static Pattern |
DISK_STORE_ID
Matches a disk store id, as printed out from list-missing disk stores.
|
| Constructor and Description |
|---|
PersistenceUtil() |
| Modifier and Type | Method and Description |
|---|---|
static boolean |
diskDirsContainInfoFile(List<File> diskDirList,
String diskStoreName)
Return true if the list of disk directories contains an init file (*.if)
for the given diskStoreName,return false otherwise.
|
static void |
doOfflineExport()
Run the offline export tool.
|
static void |
doOfflineValAndCompaction()
Run the offline validator and compaction tool.
|
static void |
doOnlineBackup(boolean incremental)
Run the online backup command
|
static Map<Integer,List<File>> |
getDiskDirMap()
Return a Map of vmIDs (keys) and disk directories (values)
|
static Set<String> |
getDiskStores()
Return a Set of diskStore names in use by the test
|
static void |
HydraTask_doOfflineExportOnce()
Run the offline export command.
|
static void |
HydraTask_doOfflineValAndCompactionOnce()
Run the offline validator and compaction tool.
|
static void |
HydraTask_initialize()
Initialize blackboard.
|
static String |
runListMissingDiskStores()
Using the command line tool, run list-missing-disk-stores
|
static void |
runOfflineExport(Integer vmid,
String diskStoreName,
File[] diskDirArr)
Run the offline export tool.
|
static void |
runOfflineValAndCompaction(String diskStoreName,
File[] diskDirArr)
Given a diskStoreName and an array of disk directories:
1) run the offline validator
2) run the offline compactor
3) run the offline validator again
then check that the validator returns the same results before and
after the compactor.
|
static Object[] |
runOfflineValidate(String diskStoreName,
File[] diskDirArr)
Run the offline validate tool.
|
static void |
runRevokeMissingDiskStore(com.gemstone.gemfire.cache.persistence.PersistentID id)
Using the command line too, run the revokeMissingDiskStore tool.
|
protected static void |
scramble(File[] fileArr)
Change the order of the files in the array
|
public static final Pattern DISK_STORE_ID
public static void HydraTask_doOfflineValAndCompactionOnce()
public static void HydraTask_doOfflineExportOnce()
public static void HydraTask_initialize()
public static void doOfflineValAndCompaction()
public static Set<String> getDiskStores()
public static void doOfflineExport()
public static void runOfflineExport(Integer vmid, String diskStoreName, File[] diskDirArr)
diskStoreName - The name of the diskStore to export.diskDirArr - An Array of disk directories, one of which contains the .if
(info) file for diskStoreName.public static Map<Integer,List<File>> getDiskDirMap()
protected static void scramble(File[] fileArr)
fileArr - An Array of Files to change order of.public static boolean diskDirsContainInfoFile(List<File> diskDirList, String diskStoreName)
diskDirList - A list of Files, each one is a directory containing disk files.diskStoreName - The diskStoreName to check for in the list of directories.public static void runOfflineValAndCompaction(String diskStoreName, File[] diskDirArr)
diskStoreName - The name of a diskStore.diskDirArr - An array of Files, each element being a disk directory.public static Object[] runOfflineValidate(String diskStoreName, File[] diskDirArr)
diskStoreName - The name of the diskStore to validate.diskDirArr - An Array of disk directories, one of which contains the .if
(info) file for diskStoreName.public static void doOnlineBackup(boolean incremental)
incremental - set to true to perform an incremental backup.performCompactionOnBackup - validation and compaction are peformed on the backup directory when true.public static String runListMissingDiskStores()
public static void runRevokeMissingDiskStore(com.gemstone.gemfire.cache.persistence.PersistentID id)
id - The persistent member to revoke.Copyright © 2010-2015 Pivotal Software, Inc. All rights reserved.