public class ClasspathConstructor extends Object
| Modifier and Type | Field and Description |
|---|---|
static String |
CLASS_PATH_SEPARATOR |
| Constructor and Description |
|---|
ClasspathConstructor() |
| Modifier and Type | Method and Description |
|---|---|
void |
addClassDirectory(String pathToDir) |
void |
addLibDir(String pathToLibDir) |
void |
addRemoteClasspathEnvVar() |
void |
append(String path)
Append an entry
|
void |
appendAll(Collection<String> paths) |
String |
buildClasspath() |
String |
buildLibDir(String pathToLibDir)
Build a lib dir path
|
List<String> |
getPathElements()
Get a copy of the path list
|
void |
insert(String path)
Insert a path at the front of the list.
|
void |
insertAll(Collection<String> paths) |
void |
insertClassDirectory(String pathToDir) |
void |
insertLibDir(String pathToLibDir) |
void |
insertRemoteClasspathEnvVar() |
Collection<String> |
localJVMClasspath()
Get the local JVM classpath split up
|
Collection<String> |
splitClasspath(String localpath)
Split a classpath.
|
String |
toString() |
List<String> |
yarnApplicationClasspath(org.apache.hadoop.conf.Configuration config)
Get the list of JARs from the YARN settings
|
public static final String CLASS_PATH_SEPARATOR
public List<String> yarnApplicationClasspath(org.apache.hadoop.conf.Configuration config)
config - configurationpublic String buildClasspath()
public void append(String path)
path - pathpublic void insert(String path)
path - path to the JAR. Absolute or relative -on the target
systempublic void appendAll(Collection<String> paths)
public void insertAll(Collection<String> paths)
public void addLibDir(String pathToLibDir)
public void insertLibDir(String pathToLibDir)
public void addClassDirectory(String pathToDir)
public void insertClassDirectory(String pathToDir)
public void addRemoteClasspathEnvVar()
public void insertRemoteClasspathEnvVar()
public String buildLibDir(String pathToLibDir)
pathToLibDir - path to the directory; may or may not end with a
trailing spacepublic Collection<String> splitClasspath(String localpath)
localpath - local pathpublic Collection<String> localJVMClasspath()
Copyright © 2014–2015 The Apache Software Foundation. All rights reserved.