@Transactional
public interface ScheduledJobManager
Generally a ManagedScheduleJobException
is thrown if the input is invalid (e.g. job does not exist) or
if the type of request is not permitted (e.g. execute runNow when the job is not set to canRunAdhoc).
Modifier and Type | Method and Description |
---|---|
default void |
disable(com.atlassian.scheduler.config.JobId jobId) |
void |
disable(ScheduledJobKey key)
Deprecated.
since 7.18. To be removed in 8.0. Use
disable(JobId) |
default void |
enable(com.atlassian.scheduler.config.JobId jobId) |
void |
enable(ScheduledJobKey key)
Deprecated.
since 7.18. To be removed in 8.0. Use
enable(JobId) |
default String |
getCronExpression(com.atlassian.scheduler.config.JobId jobId) |
String |
getCronExpression(ScheduledJobKey key)
Deprecated.
since 7.18. To be removed in 8.0. Use
getCronExpression(JobId) |
default Long |
getRepeatInterval(com.atlassian.scheduler.config.JobId jobId) |
Long |
getRepeatInterval(ScheduledJobKey key)
Deprecated.
since 7.18. To be removed in 8.0. Use
getRepeatInterval(JobId) |
default ScheduledJobStatus |
getScheduledJob(com.atlassian.scheduler.config.JobId jobId) |
ScheduledJobStatus |
getScheduledJob(ScheduledJobKey key)
Deprecated.
since 7.18. To be removed in 8.0. Use
getScheduledJob(JobId) |
List<ScheduledJobStatus> |
getScheduledJobs()
Gets the list of managed job status.
|
default void |
runNow(com.atlassian.scheduler.config.JobId jobId) |
void |
runNow(ScheduledJobKey key)
Deprecated.
since 7.18. To be removed in 8.0. Use
runNow(JobId) |
default Date |
updateCronJobSchedule(com.atlassian.scheduler.config.JobId jobId,
String newCronSchedule) |
Date |
updateCronJobSchedule(ScheduledJobKey key,
String newCronSchedule)
Deprecated.
since 7.18. To be removed in 8.0. Use
updateCronJobSchedule(JobId, String) |
default Date |
updateSimpleJobSchedule(com.atlassian.scheduler.config.JobId jobId,
long repeatInterval) |
Date |
updateSimpleJobSchedule(ScheduledJobKey key,
long repeatInterval)
Deprecated.
since 7.18. To be removed in 8.0. Use
updateSimpleJobSchedule(JobId, long) |
@Transactional(readOnly=true) List<ScheduledJobStatus> getScheduledJobs()
@Deprecated @Transactional(readOnly=true) ScheduledJobStatus getScheduledJob(ScheduledJobKey key)
getScheduledJob(JobId)
@Transactional(readOnly=true) default ScheduledJobStatus getScheduledJob(com.atlassian.scheduler.config.JobId jobId)
@Deprecated Date updateCronJobSchedule(ScheduledJobKey key, String newCronSchedule)
updateCronJobSchedule(JobId, String)
Only valid for ManagedScheduledCronJob
and requires
AbstractManagedScheduledJob.isEditable()
to be true.
default Date updateCronJobSchedule(com.atlassian.scheduler.config.JobId jobId, String newCronSchedule)
@Deprecated Date updateSimpleJobSchedule(ScheduledJobKey key, long repeatInterval)
updateSimpleJobSchedule(JobId, long)
Only valid for ManagedScheduledSimpleJob
and requires
AbstractManagedScheduledJob.isEditable()
to be true.
default Date updateSimpleJobSchedule(com.atlassian.scheduler.config.JobId jobId, long repeatInterval)
@Deprecated void runNow(ScheduledJobKey key)
runNow(JobId)
Requires ManagedScheduledJob.canRunAdhoc()
to be true.
default void runNow(com.atlassian.scheduler.config.JobId jobId)
@Deprecated void disable(ScheduledJobKey key)
disable(JobId)
Requires ManagedScheduledJob.canDisable()
to be true.
default void disable(com.atlassian.scheduler.config.JobId jobId)
@Deprecated void enable(ScheduledJobKey key)
enable(JobId)
Requires ManagedScheduledJob.canDisable()
to be true.
default void enable(com.atlassian.scheduler.config.JobId jobId)
@Deprecated @Transactional(readOnly=true) String getCronExpression(ScheduledJobKey key)
getCronExpression(JobId)
null
if not a cron job.@Transactional(readOnly=true) default String getCronExpression(com.atlassian.scheduler.config.JobId jobId)
@Deprecated @Transactional(readOnly=true) Long getRepeatInterval(ScheduledJobKey key)
getRepeatInterval(JobId)
null
if not a simple job@Transactional(readOnly=true) default Long getRepeatInterval(com.atlassian.scheduler.config.JobId jobId)
Copyright © 2003–2023 Atlassian. All rights reserved.
View cookie preferences