public class MapJobRegistry extends Object implements JobRegistry
JobRegistry.| Constructor and Description |
|---|
MapJobRegistry() |
| Modifier and Type | Method and Description |
|---|---|
Job |
getJob(String name)
Locates a
Job at runtime. |
Set<String> |
getJobNames()
Provides an unmodifiable view of the job names.
|
void |
register(JobFactory jobFactory)
Registers a
Job at runtime. |
void |
unregister(String name)
Unregisters a previously registered
Job. |
public void register(JobFactory jobFactory) throws DuplicateJobException
JobRegistryJob at runtime.register in interface JobRegistryjobFactory - the Job to be registeredDuplicateJobException - if a factory with the same job name has
already been registered.public void unregister(String name)
JobRegistryJob. If it was not
previously registered there is no error.unregister in interface JobRegistryname - the Job to unregister.public Job getJob(String name) throws NoSuchJobException
JobLocatorJob at runtime.getJob in interface JobLocatorname - the name of the Job which should be
uniqueJob identified by the given nameNoSuchJobException - if the required configuration can
not be found.public Set<String> getJobNames()
getJobNames in interface ListableJobLocatorCopyright © 2014. All rights reserved.