public class JobWithJars extends Object
Constructor and Description |
---|
JobWithJars(Plan plan,
List<URL> jarFiles,
List<URL> classpaths) |
JobWithJars(Plan plan,
URL jarFile) |
Modifier and Type | Method and Description |
---|---|
static ClassLoader |
buildUserCodeClassLoader(List<URL> jars,
List<URL> classpaths,
ClassLoader parent) |
static void |
checkJarFile(URL jar) |
List<URL> |
getClasspaths()
Returns list of classpaths that need to be submitted with the plan.
|
List<URL> |
getJarFiles()
Returns list of jar files that need to be submitted with the plan.
|
Plan |
getPlan()
Returns the plan
|
ClassLoader |
getUserCodeClassLoader()
Gets the
ClassLoader that must be used to load user code classes. |
public JobWithJars(Plan plan, List<URL> jarFiles, List<URL> classpaths) throws IOException
IOException
public JobWithJars(Plan plan, URL jarFile) throws IOException
IOException
public Plan getPlan()
public List<URL> getJarFiles()
public List<URL> getClasspaths()
public ClassLoader getUserCodeClassLoader()
ClassLoader
that must be used to load user code classes.public static void checkJarFile(URL jar) throws IOException
IOException
public static ClassLoader buildUserCodeClassLoader(List<URL> jars, List<URL> classpaths, ClassLoader parent)
Copyright © 2014–2017 The Apache Software Foundation. All rights reserved.