|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.cloudera.sqoop.shims.ShimLoader
public abstract class ShimLoader
Provides a service locator for the appropriate shim, dynamically chosen based on the Hadoop version in the classpath.
Field Summary | |
---|---|
static org.apache.commons.logging.Log |
LOG
|
static java.lang.String |
SHIM_JAR_DIR_PROPERTY
Which directory Sqoop checks for shim jars. |
Method Summary | ||
---|---|---|
static HadoopShim |
getHadoopShim()
Factory method to get an instance of HadoopShim based on the version of Hadoop on the classpath. |
|
static HadoopShim |
getHadoopShim(org.apache.hadoop.conf.Configuration conf)
Factory method to get an instance of HadoopShim based on the version of Hadoop on the classpath. |
|
static
|
getShimClass(java.lang.String className)
Given the name of a class, try to load the shim jars and return the Class object referring to that class. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final org.apache.commons.logging.Log LOG
public static final java.lang.String SHIM_JAR_DIR_PROPERTY
Method Detail |
---|
public static HadoopShim getHadoopShim(org.apache.hadoop.conf.Configuration conf)
conf
- an optional Configuration whose internal ClassLoader
should be updated with the jar containing the HadoopShim.public static HadoopShim getHadoopShim()
public static <T> java.lang.Class<? extends T> getShimClass(java.lang.String className) throws java.lang.ClassNotFoundException
className
- a class to load out of the shim jar
java.lang.ClassNotFoundException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |