|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
@PublicApi public interface JobRunnerRequest
Represents a request to run a job, providing information such as the job's configuration and intended start time.
| Method Summary | |
|---|---|
JobConfig |
getJobConfig()
Returns the job's configuration, such as its schedule and parameters. |
JobId |
getJobId()
Returns the job ID that was used to schedule this job. |
Date |
getStartTime()
Returns the time at which the job was started. |
boolean |
isCancellationRequested()
Returns true if the job runner should terminate its activities as gracefully as possible
and exit; false to continue running normally. |
| Method Detail |
|---|
@Nonnull Date getStartTime()
RunDetails that stores the
result will use this exact time for RunDetails.getStartTime().
@Nonnull JobId getJobId()
@Nonnull JobConfig getJobConfig()
boolean isCancellationRequested()
true if the job runner should terminate its activities as gracefully as possible
and exit; false to continue running normally.
Job cancellation is entirely cooperative. If a job is likely to take longer than a few seconds to complete its work, then it should periodically check this value and react to it. Normally, cancellation is requested because the application is trying to shut down, and continuing to run after this flag has been set increases the chance that the system administrator will grow impatient and forcibly kill the application.
true if cancellation is requested; false otherwise
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||