public class DefaultPackagedProgramRetriever extends Object implements PackagedProgramRetriever
PackageProgramRetrieverImpl is the default implementation of PackagedProgramRetriever that can either retrieve a PackagedProgram from a specific jar,
some provided user classpath or the system classpath.| Modifier and Type | Method and Description |
|---|---|
static DefaultPackagedProgramRetriever |
create(File userLibDir,
File jarFile,
String jobClassName,
String[] programArgs,
org.apache.flink.configuration.Configuration configuration)
Creates a
PackageProgramRetrieverImpl with the given parameters. |
static DefaultPackagedProgramRetriever |
create(File userLibDir,
String jobClassName,
String[] programArgs,
org.apache.flink.configuration.Configuration configuration)
Creates a
PackageProgramRetrieverImpl with the given parameters. |
PackagedProgram |
getPackagedProgram()
Retrieve the
PackagedProgram. |
public static DefaultPackagedProgramRetriever create(@Nullable File userLibDir, @Nullable String jobClassName, String[] programArgs, org.apache.flink.configuration.Configuration configuration) throws org.apache.flink.util.FlinkException
PackageProgramRetrieverImpl with the given parameters.userLibDir - The user library directory that is used for generating the user classpath
if specified. The system classpath is used if not specified.jobClassName - The job class that will be used if specified. The classpath is used to
detect any main class if not specified.programArgs - The program arguments.configuration - The Flink configuration for the given job.PackageProgramRetrieverImpl that can be used to create a PackagedProgram instance.org.apache.flink.util.FlinkException - If something goes wrong during instantiation.public static DefaultPackagedProgramRetriever create(@Nullable File userLibDir, @Nullable File jarFile, @Nullable String jobClassName, String[] programArgs, org.apache.flink.configuration.Configuration configuration) throws org.apache.flink.util.FlinkException
PackageProgramRetrieverImpl with the given parameters.userLibDir - The user library directory that is used for generating the user classpath
if specified. The system classpath is used if not specified.jarFile - The jar archive expected to contain the job class included; null if
the job class is on the system classpath.jobClassName - The job class to use; if null the user classpath (or, if not set,
the system classpath) will be scanned for possible main class.programArgs - The program arguments.configuration - The Flink configuration for the given job.PackageProgramRetrieverImpl that can be used to create a PackagedProgram instance.org.apache.flink.util.FlinkException - If something goes wrong during instantiation.public PackagedProgram getPackagedProgram() throws org.apache.flink.util.FlinkException
PackagedProgramRetrieverPackagedProgram.getPackagedProgram in interface PackagedProgramRetrieverPackagedProgram.org.apache.flink.util.FlinkException - if the PackagedProgram could not be retrievedCopyright © 2014–2022 The Apache Software Foundation. All rights reserved.