Class QueueResetJobFactory

  • All Implemented Interfaces:
    JobFactory

    public class QueueResetJobFactory
    extends java.lang.Object
    implements JobFactory
    • Constructor Detail

      • QueueResetJobFactory

        public QueueResetJobFactory​(SwiftletContext ctx)
    • Method Detail

      • getName

        public java.lang.String getName()
        Description copied from interface: JobFactory
        Returns the name of the JobFactory, e.g. 'Queue Mover'
        Specified by:
        getName in interface JobFactory
        Returns:
        Name
      • getDescription

        public java.lang.String getDescription()
        Description copied from interface: JobFactory
        Returns a short description of the JobFactory, e.g. 'Moves the content of a Queue'
        Specified by:
        getDescription in interface JobFactory
        Returns:
        description
      • getJobParameters

        public java.util.Map getJobParameters()
        Description copied from interface: JobFactory
        Returns a Map of JobParameters, keyed by the parameter name or null if no parameter is defined.
        Specified by:
        getJobParameters in interface JobFactory
        Returns:
        Map of JobParameters
      • getJobParameter

        public JobParameter getJobParameter​(java.lang.String s)
        Description copied from interface: JobFactory
        Returns a JobParameter with the given parameter name.
        Specified by:
        getJobParameter in interface JobFactory
        Parameters:
        s - Parameter name
        Returns:
        JobParameter or null
      • getJobInstance

        public Job getJobInstance()
        Description copied from interface: JobFactory
        Returns a Job instance. This is equal to a check-out of a pool.
        Specified by:
        getJobInstance in interface JobFactory
        Returns:
        Job
      • finished

        public void finished​(Job job,
                             JobException e)
        Description copied from interface: JobFactory
        Marks a Job instance as finished. Called after the Job has been terminated. This is equal to a check-in into a pool.
        Specified by:
        finished in interface JobFactory
        Parameters:
        job - Job instance
        e - JobException thrown by the Job instance
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object