public class TestFileUtil extends Object
| Constructor and Description |
|---|
TestFileUtil() |
| Modifier and Type | Method and Description |
|---|---|
static List |
getConfigFiles()
Returns a list of all hydra configuration files in $JTESTS, $EXTRA_JTESTS.
|
static List |
getMergeLogFiles(String masterUserDir)
Used when merging log files only.
|
static List |
getNativeClientStatisticArchivesAsList(String masterUserDir)
Returns the statistic archives for a native client test in a single list.
|
static String |
getShortTestName(String dirname) |
static SortedMap |
getStatisticArchives(List logicalSystemNames,
String masterUserDir)
Returns the existing gemfire statistic archives mapped by logical system
name.
|
static SortedMap<String,List<String>> |
getStatisticArchives(String masterUserDir)
Returns the existing statistic archives, whether local or remote, mapped
by logical system name.
|
static List |
getStatisticArchivesAsList(List logicalSystemNames,
String masterUserDir)
Returns the gemfire statistic archives in a single list.
|
static List<String> |
getStatisticArchivesAsList(String masterUserDir)
Returns the existing statistic archives, whether local or remote,
as a list.
|
static SortedMap |
getSystemDirectories(List<String> logicalSystemNames,
String masterUserDir)
Returns the existing local gemfire system directories, mapped
by logical system name.
|
static List<String> |
getSystemDirectories(String logicalSystemName,
String parentDirectory)
Returns the gemfire system directories for the logical system name found
in the specified parent directory.
|
static List<String> |
getSystemDirectoriesAsList(String masterUserDir)
Returns the existing system directories, whether local or remote,
as a list.
|
static List |
getTestDirectories(String dirname,
boolean recursive)
Returns a (possibly empty) list of all subdirectories of the specified
directory whose names end with the pattern -xxxx-xxxxxx, where x is a
digit, e.g., test-1011-123045.
|
protected static boolean |
isDigits(String s) |
static boolean |
isTestDirectory(String dirname) |
static void |
main(String[] args)
Utilities for directory operations.
|
protected static void |
removeDiskFilesAfterTest()
Removes all of the disk files.
|
public static List getConfigFiles()
public static List getTestDirectories(String dirname, boolean recursive)
This method attempts to pick up only batterytest-generated test directories.
public static boolean isTestDirectory(String dirname)
protected static boolean isDigits(String s)
public static List<String> getSystemDirectoriesAsList(String masterUserDir)
protected static void removeDiskFilesAfterTest()
Nuker.public static List getMergeLogFiles(String masterUserDir)
public static List getNativeClientStatisticArchivesAsList(String masterUserDir)
public static List<String> getStatisticArchivesAsList(String masterUserDir)
public static SortedMap<String,List<String>> getStatisticArchives(String masterUserDir)
public static void main(String[] args) throws FileNotFoundException, IOException
FileNotFoundExceptionIOExceptionpublic static SortedMap getSystemDirectories(List<String> logicalSystemNames, String masterUserDir)
public static List<String> getSystemDirectories(String logicalSystemName, String parentDirectory)
public static List getStatisticArchivesAsList(List logicalSystemNames, String masterUserDir)
Copyright © 2010-2015 Pivotal Software, Inc. All rights reserved.