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