public class JobStatusController extends StandardModelController<JobStatus>
Modifier and Type | Field and Description |
---|---|
DateTimeFormatter |
TIME_STAMP_FORMAT |
Constructor and Description |
---|
JobStatusController() |
Modifier and Type | Method and Description |
---|---|
List<JobStatus> |
findJobsForPeriod() |
List<JobStatus> |
findJobsForPeriod(ZonedDateTime now) |
JobStatus |
getOrCreateForName(String jobName) |
Set<String> |
getUniqueFields()
Get all model field names that were marked as a unique key using the @UniqueKey
annotation on the getter.
|
void |
initializeJobStatus(JobDefinition definition,
ZonedDateTime now) |
static JobStatusController |
instance() |
boolean |
lockJob(String name) |
void |
resetLockAndNextRunAt(JobStatus jobStatus) |
void |
resetLockAndNextRunAt(JobStatus jobStatus,
ZonedDateTime now) |
void |
resetNextRunTime(JobStatus jobStatus) |
void |
resetNextRunTime(JobStatus jobStatus,
ZonedDateTime now) |
static void |
selfRegister() |
void |
unlockJob(String name) |
all, countForKey, detach, filter, filter, filterBy, filterByKey, filterChain, forId, forIdWithDeleted, forUniqueKey, getBucket, getKeyFields, getModelClass, getPersister, getReadonlyWrapper, getStash, hardDelete, init, isWritable, listForKey, newModel, newModel, newModel, onPostCreate, onPostLoadItem, onPostSave, onPreCreatePrepare, onPreCreateValidate, onPreRead, onPreSavePrepare, onPreSaveValidate, originalForId, originalForId, postInitialize, preInitialize, reset, save, setPersister, setWritable, softDelete
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
anyOf, anyOf, find, forIdOrNotFound, forUniqueKeyOrNotFound, onPostSaveAuditTrailLog, search, update, updateValues
public DateTimeFormatter TIME_STAMP_FORMAT
public JobStatusController()
public static JobStatusController instance()
public static void selfRegister()
public List<JobStatus> findJobsForPeriod()
public List<JobStatus> findJobsForPeriod(ZonedDateTime now)
public void resetLockAndNextRunAt(JobStatus jobStatus)
public void resetLockAndNextRunAt(JobStatus jobStatus, ZonedDateTime now)
public void resetNextRunTime(JobStatus jobStatus)
public void resetNextRunTime(JobStatus jobStatus, ZonedDateTime now)
public void initializeJobStatus(JobDefinition definition, ZonedDateTime now)
public JobStatus getOrCreateForName(String jobName)
public Set<String> getUniqueFields()
ModelController
getUniqueFields
in interface ModelController<JobStatus>
getUniqueFields
in class StandardModelController<JobStatus>
Copyright © 2016. All rights reserved.