Class ScheduledJob
- java.lang.Object
-
- com.atlassian.bamboo.admin.scheduler.ScheduledJob
-
public class ScheduledJob extends Object
A job which runs via the scheduler.
-
-
Constructor Summary
Constructors Constructor Description ScheduledJob(@NotNull String name, @NotNull String groupName, @Nullable Date nextScheduledTime)Deprecated.since 5.14 useScheduledJob(JobKey, Date)insteadScheduledJob(@NotNull org.quartz.JobKey jobKey, Date nextScheduledTime)
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description @NotNull StringgetGroupName()Deprecated.since 5.14 usegetJobKey()insteadorg.quartz.JobKeygetJobKey()@NotNull StringgetName()Deprecated.since 5.14 usegetJobKey()instead@Nullable DategetNextScheduledTime()Gets the next scheduled time the job will run.
-
-
-
Constructor Detail
-
ScheduledJob
@Deprecated public ScheduledJob(@NotNull @NotNull String name, @NotNull @NotNull String groupName, @Nullable @Nullable Date nextScheduledTime)
Deprecated.since 5.14 useScheduledJob(JobKey, Date)insteadParameterized constructor.- Parameters:
name- the name of the jobgroupName- the name of the group the job belongs tonextScheduledTime- the next time the job is scheduled to run
-
ScheduledJob
public ScheduledJob(@NotNull @NotNull org.quartz.JobKey jobKey, Date nextScheduledTime)
-
-
Method Detail
-
getName
@Deprecated @NotNull public @NotNull String getName()
Deprecated.since 5.14 usegetJobKey()insteadGets the name of the job.- Returns:
- the name
-
getGroupName
@Deprecated @NotNull public @NotNull String getGroupName()
Deprecated.since 5.14 usegetJobKey()insteadGets 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()
-
-