Class JobGroupImpl

  • All Implemented Interfaces:
    JobGroup

    public class JobGroupImpl
    extends java.lang.Object
    implements JobGroup
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void addJobFactory​(java.lang.String jobName, JobFactory jobFactory)
      Registers a JobFactory at this JobGroup.
      java.lang.String[] getJobFactoryNames()
      Returns an array of registered JobFactory names.
      java.lang.String getName()
      Returns the name of the JobGroup.
      boolean hasJobFactory​(java.lang.String name)
      Checks whether a JobFactory with a given name is registered at this JobGroup.
      void removeAll()
      Removes all JobFactories from this JobGroup.
      void removeJobFactory​(java.lang.String jobName)
      Removes a JobFactory from this JobGroup.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • getName

        public java.lang.String getName()
        Description copied from interface: JobGroup
        Returns the name of the JobGroup. This name should be unique and should reflect the Swiftlet in some manner, e.g. 'Store' for the StoreSwiftlet. The name is set during creation of the JobGroup.
        Specified by:
        getName in interface JobGroup
        Returns:
        Name
      • hasJobFactory

        public boolean hasJobFactory​(java.lang.String name)
        Description copied from interface: JobGroup
        Checks whether a JobFactory with a given name is registered at this JobGroup.
        Specified by:
        hasJobFactory in interface JobGroup
        Parameters:
        name - JobFactory name
        Returns:
        true/false
      • getJobFactoryNames

        public java.lang.String[] getJobFactoryNames()
        Description copied from interface: JobGroup
        Returns an array of registered JobFactory names. If no JobFactories are registered, null is returned.
        Specified by:
        getJobFactoryNames in interface JobGroup
        Returns:
        JobFactory names
      • addJobFactory

        public void addJobFactory​(java.lang.String jobName,
                                  JobFactory jobFactory)
        Description copied from interface: JobGroup
        Registers a JobFactory at this JobGroup. Schedules which refers to this JobFactory are activated.
        Specified by:
        addJobFactory in interface JobGroup
        Parameters:
        jobName - Name of the JobFactory
        jobFactory - JobFactory
      • removeJobFactory

        public void removeJobFactory​(java.lang.String jobName)
        Description copied from interface: JobGroup
        Removes a JobFactory from this JobGroup. Schedules which refers to this JobFactory are deactivated, running Jobs from this JobFactory are stopped.
        Specified by:
        removeJobFactory in interface JobGroup
        Parameters:
        jobName - Name of the JobFactory
      • removeAll

        public void removeAll()
        Description copied from interface: JobGroup
        Removes all JobFactories from this JobGroup. Schedules which refers to this JobFactories are deactivated, running Jobs from this JobFactories are stopped.
        Specified by:
        removeAll in interface JobGroup