Class ScheduledJob

java.lang.Object
com.atlassian.bamboo.admin.scheduler.ScheduledJob

public class ScheduledJob extends Object
A job which runs via the scheduler.
  • Constructor Details

    • ScheduledJob

      @Deprecated public ScheduledJob(@NotNull @NotNull String name, @NotNull @NotNull String groupName, @Nullable @Nullable Date nextScheduledTime)
      Deprecated.
      since 5.14 use ScheduledJob(JobKey, Date) instead
      Parameterized constructor.
      Parameters:
      name - the name of the job
      groupName - the name of the group the job belongs to
      nextScheduledTime - the next time the job is scheduled to run
    • ScheduledJob

      public ScheduledJob(@NotNull @NotNull org.quartz.JobKey jobKey, Date nextScheduledTime)
  • Method Details

    • getName

      @Deprecated @NotNull public @NotNull String getName()
      Deprecated.
      since 5.14 use getJobKey() instead
      Gets the name of the job.
      Returns:
      the name
    • getGroupName

      @Deprecated @NotNull public @NotNull String getGroupName()
      Deprecated.
      since 5.14 use getJobKey() instead
      Gets the name of the group the job belongs to.
      Returns:
      the group name
    • getNextScheduledTime

      @Nullable public @Nullable Date getNextScheduledTime()
      Gets the next scheduled time the job will run.
      Returns:
      the next scheduled time
    • getJobKey

      public org.quartz.JobKey getJobKey()