Class JobTrigger

    • Constructor Detail

      • JobTrigger

        public JobTrigger()
      • JobTrigger

        public JobTrigger​(Date startTime,
                          Date endTime)
    • Method Detail

      • getStartTime

        public Date getStartTime()
        Description copied from interface: IJobTrigger
        Returns the trigger start time.
        Specified by:
        getStartTime in interface IJobTrigger
        Returns:
        the trigger start time.
      • setStartTime

        public void setStartTime​(Date startTime)
        Description copied from interface: IJobTrigger
        Sets the trigger start time.
        Specified by:
        setStartTime in interface IJobTrigger
        Parameters:
        startTime - when to start the trigger. If null the trigger starts immediately.
      • getEndTime

        public Date getEndTime()
        Description copied from interface: IJobTrigger
        Returns the trigger end time.
        Specified by:
        getEndTime in interface IJobTrigger
        Returns:
        the trigger end time.
      • setEndTime

        public void setEndTime​(Date endTime)
        Description copied from interface: IJobTrigger
        Sets the trigger end time.
        Specified by:
        setEndTime in interface IJobTrigger
        Parameters:
        endTime - when to end the trigger. If null the trigger runs indefinitely
      • setUiPassParam

        public void setUiPassParam​(String uiPassParam)
        Description copied from interface: IJobTrigger
        The value of this field comes from the UI and is persisted in quartz but not used by quartz or the server. It is strictly a way for the UI to persist something. In the present implementation, this field holds the scheduleType.
        Specified by:
        setUiPassParam in interface IJobTrigger
        Parameters:
        uiPassParam - A User Interface provided string
      • getCronString

        public String getCronString()
        Description copied from interface: IJobTrigger
        Returns the Cron String used by quartz Scheduler
        Specified by:
        getCronString in interface IJobTrigger
        Returns:
        the cronString
      • setCronString

        public void setCronString​(String cronString)
        Description copied from interface: IJobTrigger
        Sets the cron String used by the quartz scheduler
        Specified by:
        setCronString in interface IJobTrigger
        Parameters:
        cronString - the cronString to set
      • getDuration

        public long getDuration()
        Specified by:
        getDuration in interface IJobTrigger
        Returns:
        a long that represents in milliseconds how long this trigger should be in effect once triggered
      • setDuration

        public void setDuration​(long duration)
        Specified by:
        setDuration in interface IJobTrigger
        Parameters:
        duration - Sets the length of time in milliseconds that this trigger should be in effect.
      • getCronDescription

        public String getCronDescription()
        Description copied from interface: IJobTrigger
        Returns the User friendly description of a Cron String
        Specified by:
        getCronDescription in interface IJobTrigger
        Returns:
        the cronDescription
      • setCronDescription

        public void setCronDescription​(String cronDescription)
        Description copied from interface: IJobTrigger
        Sets the user friendly description of a cron String=
        Specified by:
        setCronDescription in interface IJobTrigger
        Parameters:
        cronDescription - the cronString to set