public abstract class AbstractDescription extends Object
| Constructor and Description |
|---|
AbstractDescription() |
| Modifier and Type | Method and Description |
|---|---|
protected Properties |
addProperties(Properties src,
Properties dst)
Adds the src properties to the non-null dst properties.
|
protected static List |
asList(int[] ints)
Converts the primitive int array to a List of Integer.
|
protected String |
convertPrm(Long key)
Converts the parameter key to its gemfire-style property name.
|
protected static String |
convertPrmDefault(String prm)
Converts the parameter to its gemfire-style default field name.
|
protected static Boolean |
getBooleanFor(String str,
Long key)
Converts the given string to a Boolean.
|
protected static Class |
getClass(Long key,
String classname)
Returns the class with the given name.
|
protected static String |
getClassname(Object obj)
Returns the classname for the given object.
|
static Object |
getInstance(Long key,
String classname)
Returns an instance of the class with the given name.
|
protected static Integer |
getIntegerFor(String str,
Long key)
Converts the given string to an Integer.
|
protected static Integer |
getNonnegativeIntegerFor(Integer i,
Long key)
Makes sure the given integer is nonnegative.
|
protected static Map |
getParametersAndDefaults(Long key,
Class cls)
Returns the "public static Long" parameters provided by the given class,
as Long keys, along with their default values or the empty string.
|
protected static String |
getPath(Long key,
String val)
Returns the fully expanded path to the file for the given string.
|
protected static SSLDescription |
getSSLDescription(String str,
Long key,
TestConfig config)
Returns the SSL description for the given string.
|
protected static Class |
loadClass(String classname)
Loads the class with the given name.
|
protected static String |
parseMethod(Long key,
String val,
Class[] argTypes,
Class returnType)
Parses the given string into a class and method.
|
abstract SortedMap |
toSortedMap()
Returns a sorted map of description fields and their values.
|
String |
toString()
Returns a string representing the sorted field-value map with each entry
on a separate line, indented if necessary to fit within parent descriptions
for ease of reading in a log file.
|
public abstract SortedMap toSortedMap()
public String toString()
protected Properties addProperties(Properties src, Properties dst)
protected static List asList(int[] ints)
protected static Boolean getBooleanFor(String str, Long key)
protected static Integer getIntegerFor(String str, Long key)
protected static Class getClass(Long key, String classname)
HydraConfigException - if not found.protected static String getClassname(Object obj)
public static Object getInstance(Long key, String classname)
HydraConfigException - if instantiation fails.protected static Integer getNonnegativeIntegerFor(Integer i, Long key)
HydraConfigException - if the integer is negative.protected static Map getParametersAndDefaults(Long key, Class cls)
HydraConfigException - if none are found.protected String convertPrm(Long key)
passwordFile converts to password-file.protected static String convertPrmDefault(String prm)
passwordFile converts to
DEFAULT_PASSWORD_FILE.protected static String getPath(Long key, String val)
HydraConfigException - if the file does not exist.protected static Class loadClass(String classname)
HydraRuntimeException - if not found.protected static String parseMethod(Long key, String val, Class[] argTypes, Class returnType)
HydraConfigException - if the class or method is not found.protected static SSLDescription getSSLDescription(String str, Long key, TestConfig config)
HydraConfigException - if the given string is not listed in SSLPrms.names.Copyright © 2010-2015 Pivotal Software, Inc. All rights reserved.