|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.atlassian.scheduler.core.status.AbstractJobDetails
public abstract class AbstractJobDetails
Base implementation for JobDetails.
| Field Summary | |
|---|---|
protected JobId |
jobId
|
protected JobRunnerKey |
jobRunnerKey
|
protected RunMode |
runMode
|
protected Schedule |
schedule
|
| Constructor Summary | |
|---|---|
protected |
AbstractJobDetails(JobId jobId,
JobRunnerKey jobRunnerKey,
RunMode runMode,
Schedule schedule,
Date nextRunTime,
byte[] rawParameters)
|
| Method Summary | |
|---|---|
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()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface com.atlassian.scheduler.status.JobDetails |
|---|
getParameters, isRunnable |
| Field Detail |
|---|
protected final JobId jobId
protected final JobRunnerKey jobRunnerKey
protected final RunMode runMode
protected final Schedule schedule
| Constructor Detail |
|---|
protected AbstractJobDetails(@Nonnull
JobId jobId,
@Nonnull
JobRunnerKey jobRunnerKey,
@Nonnull
RunMode runMode,
@Nonnull
Schedule schedule,
@Nullable
Date nextRunTime,
byte[] rawParameters)
| Method Detail |
|---|
@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()
JobDetails
getSchedule 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()
null if the parameter map
was empty.public final String toString()
toString in class Objectprotected abstract void appendToStringDetails(StringBuilder sb)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||