public class StaxJobFactory extends JobFactory
Modifier and Type | Field and Description |
---|---|
static org.apache.log4j.Logger |
logger |
static String |
MSG_UNABLE_TO_INSTANCIATE_JOB_VALIDATION_FACTORIES |
ARCHIVE_DEFAULT_XMLFILE, ARCHIVE_MANIFEST_DIRECTORY, ARCHIVE_MANIFEST_FILE, ARCHIVE_MANIFEST_PROPERTY_XMLFILE, JOBFACTORY_TMPDIR_PROPERTY
Constructor and Description |
---|
StaxJobFactory(boolean handleGlobalVariables)
Create a new instance of StaxJobFactory.
|
Modifier and Type | Method and Description |
---|---|
Job |
createJob(InputStream workflowStream) |
Job |
createJob(InputStream workflowStream,
Map<String,String> replacementVariables,
Map<String,String> replacementGenericInfos) |
Job |
createJob(InputStream workflowStream,
Map<String,String> replacementVariables,
Map<String,String> replacementGenericInfos,
Scheduler scheduler,
SchedulerSpaceInterface space,
String sessionId) |
Job |
createJob(String filePath)
Creates a job using the given job descriptor.
|
Job |
createJob(String filePath,
Map<String,String> replacementVariables,
Map<String,String> replacementGenericInfos)
Creates a job using the given job descriptor.
|
Job |
createJob(String filePath,
Map<String,String> replacementVariables,
Map<String,String> replacementGenericInfos,
Scheduler scheduler,
SchedulerSpaceInterface space,
String sessionId)
Creates a job using the given job descriptor with the scheduler instance for validating jobs.
|
Job |
createJob(URI filePath)
Creates a job using the given job descriptor.
|
Job |
createJob(URI filePath,
Map<String,String> replacementVariables,
Map<String,String> replacementGenericInfos)
Creates a job using the given job descriptor.
|
protected Map<String,JobVariable> |
replaceVariablesInJobVariablesMap(Map<String,JobVariable> variablesMap,
Map<String,String> replacementVariables) |
protected Map<String,TaskVariable> |
replaceVariablesInTaskVariablesMap(Map<String,TaskVariable> variablesMap,
Map<String,String> replacementVariables) |
getFactory, getFactory, getFactory, getFactory
public static final org.apache.log4j.Logger logger
public static final String MSG_UNABLE_TO_INSTANCIATE_JOB_VALIDATION_FACTORIES
public StaxJobFactory(boolean handleGlobalVariables)
public Job createJob(String filePath) throws JobCreationException
JobFactory
createJob
in class JobFactory
filePath
- the path to an XML job descriptor.JobCreationException
- if an exception occurred during job creation.public Job createJob(String filePath, Map<String,String> replacementVariables, Map<String,String> replacementGenericInfos) throws JobCreationException
JobFactory
createJob
in class JobFactory
filePath
- the path to an XML job descriptor.replacementVariables
- map of job submission variablesreplacementGenericInfos
- map of job submission generic infosJobCreationException
- if an exception occurred during job creation.public Job createJob(String filePath, Map<String,String> replacementVariables, Map<String,String> replacementGenericInfos, Scheduler scheduler, SchedulerSpaceInterface space, String sessionId) throws JobCreationException
JobFactory
createJob
in class JobFactory
filePath
- the path to an XML job descriptorreplacementVariables
- map of job submission variablesreplacementGenericInfos
- 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 Job createJob(URI filePath) throws JobCreationException
JobFactory
createJob
in class JobFactory
filePath
- the path to an XML job descriptor.JobCreationException
- if an exception occurred during job creation.public Job createJob(URI filePath, Map<String,String> replacementVariables, Map<String,String> replacementGenericInfos) throws JobCreationException
JobFactory
createJob
in class JobFactory
filePath
- the path to an XML job descriptor.replacementVariables
- map of job submission variablesreplacementGenericInfos
- map of job submission generic infosJobCreationException
- if an exception occurred during job creation.public Job createJob(InputStream workflowStream) throws JobCreationException
createJob
in class JobFactory
JobCreationException
JobFactory.createJob(String)
public Job createJob(InputStream workflowStream, Map<String,String> replacementVariables, Map<String,String> replacementGenericInfos) throws JobCreationException
createJob
in class JobFactory
JobCreationException
public Job createJob(InputStream workflowStream, Map<String,String> replacementVariables, Map<String,String> replacementGenericInfos, Scheduler scheduler, SchedulerSpaceInterface space, String sessionId) throws JobCreationException
createJob
in class JobFactory
JobCreationException
protected Map<String,JobVariable> replaceVariablesInJobVariablesMap(Map<String,JobVariable> variablesMap, Map<String,String> replacementVariables) throws JobCreationException
JobCreationException
protected Map<String,TaskVariable> replaceVariablesInTaskVariablesMap(Map<String,TaskVariable> variablesMap, Map<String,String> replacementVariables) throws JobCreationException
JobCreationException