Interface JobRegistry

All Known Implementing Classes:
MapJobRegistry

public interface JobRegistry
A runtime service registry interface for registering job configurations by name.
Author:
Dave Syer, Mahmoud Ben Hassine
  • Method Details

    • getJob

      @Nullable Job getJob(String name)
      Returns a Job by name.
      Parameters:
      name - the name of the Job which should be unique
      Returns:
      a Job identified by the given name, or null if no such job exists.
    • getJobNames

      Collection<String> getJobNames()
      Provides the currently registered job names. The return value is unmodifiable and disconnected from the underlying registry storage.
      Returns:
      a collection of String. Empty if none are registered.
    • register

      void register(Job job) throws DuplicateJobException
      Registers a Job at runtime.
      Parameters:
      job - the Job to be registered
      Throws:
      DuplicateJobException - if a job with the same name has already been registered.
    • unregister

      void unregister(String jobName)
      Unregisters a previously registered Job. If the job is not found, this method does nothing.
      Parameters:
      jobName - the Job to unregister.