public final class SimpleJobDetails extends AbstractJobDetails
JobDetails that has the parameter map present.jobId, jobRunnerKey, runMode, schedule| Constructor and Description |
|---|
SimpleJobDetails(JobId jobId,
JobRunnerKey jobRunnerKey,
RunMode runMode,
Schedule schedule,
Date nextRunTime,
byte[] rawParameters,
Map<String,Serializable> parameters) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
appendToStringDetails(StringBuilder sb) |
Map<String,Serializable> |
getParameters()
Returns the configured runtime parameters for this job.
|
boolean |
isRunnable()
Returns
true if this job could be successfully run at this time. |
getJobId, getJobRunnerKey, getNextRunTime, getRawParameters, getRunMode, getSchedule, toStringpublic SimpleJobDetails(JobId jobId, JobRunnerKey jobRunnerKey, RunMode runMode, Schedule schedule, @Nullable Date nextRunTime, byte[] rawParameters, @Nullable Map<String,Serializable> parameters)
@Nonnull public Map<String,Serializable> getParameters()
JobDetails
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
JobDetails.isRunnable() method, as a false return value from that method usually
guarantees that this method will fail.
public boolean isRunnable()
JobDetailstrue 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 otherwiseprotected void appendToStringDetails(StringBuilder sb)
appendToStringDetails in class AbstractJobDetailsCopyright © 2017 Atlassian. All rights reserved.