Class FromJarEntryClassInformationProvider
java.lang.Object
org.apache.flink.client.deployment.application.FromJarEntryClassInformationProvider
- All Implemented Interfaces:
EntryClassInformationProvider
public class FromJarEntryClassInformationProvider
extends Object
implements EntryClassInformationProvider
FromJarEntryClassInformationProvider is used for cases where the Jar archive is
explicitly specified.-
Method Summary
Modifier and TypeMethodDescriptioncreateFromCustomJar(File jarFile, String jobClassName) Creates aFromJarEntryClassInformationProviderfor a custom Jar archive.Creates aFromJarEntryClassInformationProviderfor a job implemented in Python.Returns the specifiedjarFile.Returns the specified job class name that is either available in the correspondingjarFile.
-
Method Details
-
createFromCustomJar
public static FromJarEntryClassInformationProvider createFromCustomJar(File jarFile, @Nullable String jobClassName) Creates aFromJarEntryClassInformationProviderfor a custom Jar archive. At least thejarFileor thejobClassNamehas to be set.- Parameters:
jarFile- The Jar archive.jobClassName- The name of the job class.- Returns:
- The
FromJarEntryClassInformationProviderreferring to the passed information.
-
createFromPythonJar
Creates aFromJarEntryClassInformationProviderfor a job implemented in Python.- Returns:
- A
FromJarEntryClassInformationProviderfor a job implemented in Python
-
getJarFile
Returns the specifiedjarFile.- Specified by:
getJarFilein interfaceEntryClassInformationProvider- Returns:
- The specified
jarFile. - See Also:
-
getJobClassName
Returns the specified job class name that is either available in the correspondingjarFile. It can return an emptyOptionalif the job class is the entry class of the jar.- Specified by:
getJobClassNamein interfaceEntryClassInformationProvider- Returns:
- Returns the job class that can be found in the respective
jarFile. It can also return an emptyOptionaldespite if the job class is the entry class of the jar. - See Also:
-