@Immutable @PublicApi public interface JobDetails
JobConfig,
but also includes information about the job's current state, such as whether it is
currently runnable.JobConfig,
RunDetails| Modifier and Type | Method and Description |
|---|---|
JobId |
getJobId()
Returns the job ID that was used to
schedule
this job, or the one that was generated for it if the job was scheduled
without specifying one. |
JobRunnerKey |
getJobRunnerKey()
Returns the
job runner key that was specified when this job was
scheduled. |
Date |
getNextRunTime()
Returns the next time at which this job will run, if known.
|
Map<String,Serializable> |
getParameters()
Returns the configured runtime parameters for this job.
|
RunMode |
getRunMode()
Returns the
configured run mode that was specified
when this job was scheduled. |
Schedule |
getSchedule()
Returns the schedule that the Job will run under.
|
boolean |
isRunnable()
Returns
true if this job could be successfully run at this time. |
@Nonnull JobId getJobId()
schedule
this job, or the one that was generated for it if the job was scheduled
without specifying one.@Nonnull JobRunnerKey getJobRunnerKey()
job runner key that was specified when this job was
scheduled.@Nonnull RunMode getRunMode()
configured run mode that was specified
when this job was scheduled.@Nonnull Schedule getSchedule()
@CheckForNull Date getNextRunTime()
OPTIONAL — Scheduler implementations are not required to provide this
information. The return value will be null if:
null otherwise.@Nonnull Map<String,Serializable> getParameters()
WARNING: If this job was created by a plugin that is not currently active,
then it may not actually be possible to access the job's parameters, and this method will throw
a SchedulerRuntimeException. Callers are encouraged to first call the
isRunnable() method, as a false return value from that method usually
guarantees that this method will fail.
SchedulerRuntimeException - if the parameters could not be loaded, likely because the
job runner is not registeredboolean isRunnable()
true if this job could be successfully run at this time. This requires it to have
a registered JobRunner whose class loader can successfully reconstruct the job's
parameter map.true if this job is currently runnable; false otherwiseCopyright © 2017 Atlassian. All rights reserved.