public class FromJarEntryClassInformationProvider extends Object implements EntryClassInformationProvider
FromJarEntryClassInformationProvider
is used for cases where the Jar archive is
explicitly specified.Modifier and Type | Method and Description |
---|---|
static FromJarEntryClassInformationProvider |
createFromCustomJar(File jarFile,
String jobClassName)
Creates a
FromJarEntryClassInformationProvider for a custom Jar archive. |
static FromJarEntryClassInformationProvider |
createFromPythonJar()
Creates a
FromJarEntryClassInformationProvider for a job implemented in Python. |
Optional<File> |
getJarFile()
Returns the specified
jarFile . |
Optional<String> |
getJobClassName()
Returns the specified job class name that is either available in the corresponding
jarFile . |
public static FromJarEntryClassInformationProvider createFromCustomJar(File jarFile, @Nullable String jobClassName)
FromJarEntryClassInformationProvider
for a custom Jar archive. At least the
jarFile
or the jobClassName
has to be set.jarFile
- The Jar archive.jobClassName
- The name of the job class.FromJarEntryClassInformationProvider
referring to the passed information.public static FromJarEntryClassInformationProvider createFromPythonJar()
FromJarEntryClassInformationProvider
for a job implemented in Python.FromJarEntryClassInformationProvider
for a job implemented in Pythonpublic Optional<File> getJarFile()
jarFile
.getJarFile
in interface EntryClassInformationProvider
jarFile
.getJobClassName()
public Optional<String> getJobClassName()
jarFile
. It can return an empty Optional
if the job class is the entry class of the
jar.getJobClassName
in interface EntryClassInformationProvider
jarFile
. It can
also return an empty Optional
despite if the job class is the entry class of the
jar.getJarFile()
Copyright © 2014–2024 The Apache Software Foundation. All rights reserved.