Class AccumuloClassLoader
- java.lang.Object
-
- org.apache.accumulo.start.classloader.AccumuloClassLoader
-
public class AccumuloClassLoader extends Object
-
-
Field Summary
Fields Modifier and Type Field Description static StringACCUMULO_CLASSPATH_VALUEstatic StringCLASSPATH_PROPERTY_NAMEstatic StringDEFAULT_MAVEN_PROJECT_BASEDIR_VALUEstatic StringMAVEN_PROJECT_BASEDIR_PROPERTY_NAME
-
Constructor Summary
Constructors Constructor Description AccumuloClassLoader()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static StringgetAccumuloString(String propertyName, String defaultValue)Looks for the site configuration file for Accumulo and if it has a property for propertyName return it otherwise returns defaultValue Should throw an exception if the default configuration can not be read;static ClassLoadergetClassLoader()static StringreplaceEnvVars(String classpath, Map<String,String> env)Replace environment variables in the classpath string with their actual value
-
-
-
Field Detail
-
CLASSPATH_PROPERTY_NAME
public static final String CLASSPATH_PROPERTY_NAME
- See Also:
- Constant Field Values
-
ACCUMULO_CLASSPATH_VALUE
public static final String ACCUMULO_CLASSPATH_VALUE
- See Also:
- Constant Field Values
-
MAVEN_PROJECT_BASEDIR_PROPERTY_NAME
public static final String MAVEN_PROJECT_BASEDIR_PROPERTY_NAME
- See Also:
- Constant Field Values
-
DEFAULT_MAVEN_PROJECT_BASEDIR_VALUE
public static final String DEFAULT_MAVEN_PROJECT_BASEDIR_VALUE
- See Also:
- Constant Field Values
-
-
Method Detail
-
getAccumuloString
public static String getAccumuloString(String propertyName, String defaultValue)
Looks for the site configuration file for Accumulo and if it has a property for propertyName return it otherwise returns defaultValue Should throw an exception if the default configuration can not be read;- Parameters:
propertyName- Name of the property to pulldefaultValue- Value to default to if not found.- Returns:
- site or default class path String
-
replaceEnvVars
public static String replaceEnvVars(String classpath, Map<String,String> env)
Replace environment variables in the classpath string with their actual value
-
getClassLoader
public static ClassLoader getClassLoader() throws IOException
- Throws:
IOException
-
-