public class HydraUtil extends Object
| Modifier and Type | Field and Description |
|---|---|
static String |
NEW_LINE |
static String |
TAB |
| Constructor and Description |
|---|
HydraUtil() |
| Modifier and Type | Method and Description |
|---|---|
static Object |
copyMap(Map map) |
static void |
createLogWriter() |
static String |
generateNamedDoubleSuffixedNames(String prefix,
int n,
int m,
String[] s,
boolean varyFirst,
boolean useComma) |
static String |
generateNamedDoubleSuffixedNames(String prefix,
int n,
int m,
String s,
boolean varyFirst,
boolean useComma) |
static Object |
getInstanceOfClass(String klass) |
static int |
getnextNonZeroRandomInt(int maxExclusive) |
static int |
getnextRandomInt(int maxExclusive) |
static boolean |
getRandomBoolean() |
static <V> V |
getRandomElement(Collection<V> coll) |
static <V> V |
getRandomElement(List<V> coll) |
static <V> V |
getRandomElement(Set<V> coll) |
static <V> V |
getRandomElement(V[] coll) |
static String |
getStackTraceAsString(Throwable throwable) |
static boolean |
isConcurrentTest() |
static boolean |
isSerialTest() |
static void |
logError(String message) |
static void |
logError(String message,
Throwable e) |
static void |
logErrorAndRaiseException(String string) |
static void |
logErrorAndRaiseException(String message,
Throwable e) |
static void |
logFine(String message) |
static void |
logFinest(String message) |
static void |
logInfo(String message) |
static void |
logInfo(String message,
Throwable e) |
static void |
main(String[] args) |
static String |
ObjectToString(Object object) |
static boolean |
runninghydra() |
static void |
sleepForDataUpdaterJMX(long time) |
static void |
sleepForReplicationJMX() |
static void |
threadDump() |
public static final String NEW_LINE
public static final String TAB
public static void createLogWriter()
public static void logInfo(String message)
public static void logFine(String message)
public static void logFinest(String message)
public static void logError(String message)
public static void logErrorAndRaiseException(String message, Throwable e) throws TestException
TestExceptionpublic static void logErrorAndRaiseException(String string)
public static boolean isConcurrentTest()
public static boolean isSerialTest()
public static void main(String[] args)
public static boolean runninghydra()
public static <V> V getRandomElement(List<V> coll)
public static <V> V getRandomElement(V[] coll)
public static <V> V getRandomElement(Set<V> coll)
public static <V> V getRandomElement(Collection<V> coll)
public static int getnextRandomInt(int maxExclusive)
public static int getnextNonZeroRandomInt(int maxExclusive)
public static boolean getRandomBoolean()
public static void sleepForReplicationJMX()
public static void sleepForDataUpdaterJMX(long time)
public static void threadDump()
public static String generateNamedDoubleSuffixedNames(String prefix, int n, int m, String[] s, boolean varyFirst, boolean useComma)
public static String generateNamedDoubleSuffixedNames(String prefix, int n, int m, String s, boolean varyFirst, boolean useComma)
Copyright © 2010-2015 Pivotal Software, Inc. All rights reserved.