org.apache.accumulo.start.classloader
Class AccumuloClassLoader

java.lang.Object
  extended by org.apache.accumulo.start.classloader.AccumuloClassLoader

public class AccumuloClassLoader
extends Object


Field Summary
static String ACCUMULO_CLASSPATH_VALUE
           
static String CLASSPATH_PROPERTY_NAME
           
 
Constructor Summary
AccumuloClassLoader()
           
 
Method Summary
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;
static ClassLoader getClassLoader()
           
static String replaceEnvVars(String classpath, Map<String,String> env)
          Replace environment variables in the classpath string with their actual value
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

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
Constructor Detail

AccumuloClassLoader

public AccumuloClassLoader()
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 pull
defaultValue - 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

Parameters:
classpath -
env -

getClassLoader

public static ClassLoader getClassLoader()
                                  throws IOException
Throws:
IOException


Copyright © 2013 Apache Accumulo Project. All Rights Reserved.