Interface StatelessJob

  • All Superinterfaces:
    java.io.Serializable
    All Known Implementing Classes:
    InternalJob, JobWrapper, TriggerTimerEventJob

    public interface StatelessJob
    extends java.io.Serializable
    Interface of a scheduled job. A job is classified using a name and a group name. A job has a unique name and group name. It fires the following events :
    • JOB_EXECUTING = "JOB_EXECUTING"
    • JOB_COMPLETED = "JOB_COMPLETED"
    Author:
    Matthieu Chaffotte
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      void execute()
      Execute the content of the job.
      java.lang.String getDescription()
      Gets the description of the job.
      java.lang.String getName()
      Gets the job name.
      void setAttributes​(java.util.Map<java.lang.String,​java.io.Serializable> attributes)
      This method is called by the scheduler service before the execution of the job
    • Method Detail

      • getName

        java.lang.String getName()
        Gets the job name.
        Returns:
        the job name
        Since:
        6.0
      • getDescription

        java.lang.String getDescription()
        Gets the description of the job.
        Returns:
        the job description
        Since:
        6.0
      • setAttributes

        void setAttributes​(java.util.Map<java.lang.String,​java.io.Serializable> attributes)
                    throws SJobConfigurationException
        This method is called by the scheduler service before the execution of the job
        Parameters:
        attributes - key is the name of the attribute value is the value of the attribute
        Throws:
        SJobConfigurationException
        Since:
        6.0