public abstract class AbstractJobDetails extends Object implements JobDetails
JobDetails.| Modifier and Type | Field and Description |
|---|---|
protected JobId |
jobId |
protected JobRunnerKey |
jobRunnerKey |
protected RunMode |
runMode |
protected Schedule |
schedule |
| Modifier | Constructor and Description |
|---|---|
protected |
AbstractJobDetails(JobId jobId,
JobRunnerKey jobRunnerKey,
RunMode runMode,
Schedule schedule,
Date nextRunTime,
byte[] rawParameters) |
| Modifier and Type | Method and Description |
|---|---|
protected abstract void |
appendToStringDetails(StringBuilder sb) |
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.
|
byte[] |
getRawParameters()
Returns the raw bytes from the job's parameters.
|
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.
|
String |
toString() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetParameters, isRunnableprotected final JobId jobId
protected final JobRunnerKey jobRunnerKey
protected final RunMode runMode
protected final Schedule schedule
@Nonnull public final JobId getJobId()
JobDetailsschedule
this job, or the one that was generated for it if the job was scheduled
without specifying one.getJobId in interface JobDetails@Nonnull public final JobRunnerKey getJobRunnerKey()
JobDetailsjob runner key that was specified when this job was
scheduled.getJobRunnerKey in interface JobDetails@Nonnull public final RunMode getRunMode()
JobDetailsconfigured run mode that was specified
when this job was scheduled.getRunMode in interface JobDetails@Nonnull public Schedule getSchedule()
JobDetailsgetSchedule in interface JobDetails@Nullable public Date getNextRunTime()
JobDetails
OPTIONAL — Scheduler implementations are not required to provide this
information. The return value will be null if:
getNextRunTime in interface JobDetailsnull otherwise.@Nullable public final byte[] getRawParameters()
This is not part of the public API. It is intended for the persistence layer to use for accessing the raw parameters and/or a troubleshooting tool for a management interface to use. For example, it might try to deserialize the map with the application's class loader or read the raw serialization data to show the administrator whatever information can be pulled out of it.
null if the parameter map
was empty.protected abstract void appendToStringDetails(StringBuilder sb)
Copyright © 2017 Atlassian. All rights reserved.