@PublicAPI public abstract class JobFactory extends Object
Modifier and Type | Field and Description |
---|---|
static String |
ARCHIVE_DEFAULT_XMLFILE
Archive special manifest directory, file, property
|
static String |
ARCHIVE_MANIFEST_DIRECTORY |
static String |
ARCHIVE_MANIFEST_FILE |
static String |
ARCHIVE_MANIFEST_PROPERTY_XMLFILE |
static String |
JOBFACTORY_TMPDIR_PROPERTY
Temp dir to store temporary archive content
|
static org.apache.log4j.Logger |
logger |
Constructor and Description |
---|
JobFactory() |
Modifier and Type | Method and Description |
---|---|
abstract Job |
createJob(InputStream workflowStream) |
abstract Job |
createJob(InputStream workflowStream,
Map<String,String> variables,
Map<String,String> genericInfos) |
abstract Job |
createJob(InputStream workflowStream,
Map<String,String> variables,
Map<String,String> genericInfos,
Scheduler scheduler,
SchedulerSpaceInterface space,
String sessionId) |
abstract Job |
createJob(String filePath)
Creates a job using the given job descriptor.
|
abstract Job |
createJob(String filePath,
Map<String,String> variables,
Map<String,String> genericInfos)
Creates a job using the given job descriptor.
|
abstract Job |
createJob(String filePath,
Map<String,String> variables,
Map<String,String> genericInfos,
Scheduler scheduler,
SchedulerSpaceInterface space,
String sessionId)
Creates a job using the given job descriptor with the scheduler instance for validating jobs.
|
abstract Job |
createJob(URI filePath)
Creates a job using the given job descriptor.
|
abstract Job |
createJob(URI filePath,
Map<String,String> variables,
Map<String,String> genericInfos)
Creates a job using the given job descriptor.
|
static JobFactory |
getFactory()
Try to instantiate the known factories.
|
static JobFactory |
getFactory(boolean handleGlobalVariables)
Try to instantiate the known factories.
|
static JobFactory |
getFactory(String impl)
Try to instantiate the given factory.
|
static JobFactory |
getFactory(String impl,
boolean handleGlobalVariables)
Try to instantiate the given factory.
|
public static final org.apache.log4j.Logger logger
public static final String JOBFACTORY_TMPDIR_PROPERTY
public static final String ARCHIVE_DEFAULT_XMLFILE
public static final String ARCHIVE_MANIFEST_DIRECTORY
public static final String ARCHIVE_MANIFEST_FILE
public static final String ARCHIVE_MANIFEST_PROPERTY_XMLFILE
public static JobFactory getFactory()
public static JobFactory getFactory(boolean handleGlobalVariables)
handleGlobalVariables
- if global variables should be handled by the job factorypublic static JobFactory getFactory(String impl)
public static JobFactory getFactory(String impl, boolean handleGlobalVariables)
handleGlobalVariables
- if global variables should be handled by the job factorypublic abstract Job createJob(String filePath) throws JobCreationException
filePath
- the path to an XML job descriptor.JobCreationException
- if an exception occurred during job creation.public abstract Job createJob(String filePath, Map<String,String> variables, Map<String,String> genericInfos) throws JobCreationException
filePath
- the path to an XML job descriptor.variables
- map of job submission variablesgenericInfos
- map of job submission generic infosJobCreationException
- if an exception occurred during job creation.public abstract Job createJob(String filePath, Map<String,String> variables, Map<String,String> genericInfos, Scheduler scheduler, SchedulerSpaceInterface space, String sessionId) throws JobCreationException
filePath
- the path to an XML job descriptorvariables
- map of job submission variablesgenericInfos
- map of job submission generic infosscheduler
- the Scheduler instance for validating jobs to access third-party credentialsspace
- the SchedulerSpaceInterface instance for validating jobs to access data spaces filessessionId
- current session for validating jobs with CATALOG_OBJECT variablesJobCreationException
- if an exception occurred during job creationpublic abstract Job createJob(URI filePath) throws JobCreationException
filePath
- the path to an XML job descriptor.JobCreationException
- if an exception occurred during job creation.public abstract Job createJob(URI filePath, Map<String,String> variables, Map<String,String> genericInfos) throws JobCreationException
filePath
- the path to an XML job descriptor.variables
- map of job submission variablesgenericInfos
- map of job submission generic infosJobCreationException
- if an exception occurred during job creation.public abstract Job createJob(InputStream workflowStream) throws JobCreationException
JobCreationException
createJob(String)
public abstract Job createJob(InputStream workflowStream, Map<String,String> variables, Map<String,String> genericInfos) throws JobCreationException
JobCreationException
public abstract Job createJob(InputStream workflowStream, Map<String,String> variables, Map<String,String> genericInfos, Scheduler scheduler, SchedulerSpaceInterface space, String sessionId) throws JobCreationException
JobCreationException