public class JobFactory
extends java.lang.Object
Job
instances.Constructor and Description |
---|
JobFactory(JobDefinitionRepository jobDefinitionRepository,
ModuleRegistry moduleRegistry,
ModuleOptionsMetadataResolver moduleOptionsMetadataResolver)
Construct a JobFactory to create
Job domain model instances. |
public JobFactory(JobDefinitionRepository jobDefinitionRepository, ModuleRegistry moduleRegistry, ModuleOptionsMetadataResolver moduleOptionsMetadataResolver)
Job
domain model instances.jobDefinitionRepository
- repository for job definitionsmoduleRegistry
- registry for module definitionsmoduleOptionsMetadataResolver
- resolver for module options metadatapublic Job createJob(java.lang.String name, java.util.Map<java.lang.String,java.lang.String> properties)
Job
for the given name and
properties. The properties should at minimum contain the following
entries:
definition | DSL definition for job |
---|---|
deploymentProperties | Deployment properties for job |
name
- job nameproperties
- properties for jobJob
domain model instance