@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(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(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(String impl)
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(String impl)
public 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(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