Interface JobFactory

    • Method Detail

      • getName

        java.lang.String getName()
        Returns the name of the JobFactory, e.g. 'Queue Mover'
        Returns:
        Name
      • getDescription

        java.lang.String getDescription()
        Returns a short description of the JobFactory, e.g. 'Moves the content of a Queue'
        Returns:
        description
      • getJobParameters

        java.util.Map getJobParameters()
        Returns a Map of JobParameters, keyed by the parameter name or null if no parameter is defined.
        Returns:
        Map of JobParameters
      • getJobParameter

        JobParameter getJobParameter​(java.lang.String name)
        Returns a JobParameter with the given parameter name.
        Parameters:
        name - Parameter name
        Returns:
        JobParameter or null
      • getJobInstance

        Job getJobInstance()
        Returns a Job instance. This is equal to a check-out of a pool.
        Returns:
        Job
      • finished

        void finished​(Job job,
                      JobException exception)
        Marks a Job instance as finished. Called after the Job has been terminated. This is equal to a check-in into a pool.
        Parameters:
        job - Job instance
        exception - JobException thrown by the Job instance