@Internal public class HibernateInternalRunDetailsDao extends ConfluenceHibernateObjectDao<SchedulerRunDetails> implements InternalRunDetailsDao
InternalRunDetailsDao interfaceHibernateObjectDao.CacheabilitycacheFactory, confluenceUserDaoSCHEDULER_RUN_DETAILS| Constructor and Description |
|---|
HibernateInternalRunDetailsDao(ConfluenceHibernateConfig hibernateConfig)
Deprecated.
since 7.20
|
HibernateInternalRunDetailsDao(HibernateDatabaseCapabilities databaseCapabilities) |
| Modifier and Type | Method and Description |
|---|---|
long |
count(Optional<com.atlassian.scheduler.config.JobId> jobId,
long timeToLiveThreshold,
com.atlassian.scheduler.status.RunOutcome runOutcome) |
Class<SchedulerRunDetails> |
getPersistentClass()
Gets the type of
EntityObject this Dao works with. |
List<SchedulerRunDetails> |
getRecentRunDetails(ScheduledJobKey key) |
List<SchedulerRunDetails> |
getRecentRunDetails(ScheduledJobKey key,
int limit) |
int |
purgeAll()
This method purges all run details.
|
int |
purgeOldRunDetails(SchedulerRunDetailsPurgeMode purgeMode,
int limit) |
findAllSorted, findLatestVersionsCount, findLatestVersionsCount, findLatestVersionsIterator, findLatestVersionsIterator, findNamedQueryStringParams, findNamedQueryStringParams, save, saveEntity, setCacheFactory, setConfluenceUserDao, updateEntityModificationData, updateModificationDataapplyTransactionTimeout, applyTransactionTimeout, checkDaoConfig, createHibernateTemplate, findAll, findAllSorted, findByClassIds, findByClassIdsFiltered, findNamedQuery, findNamedQuery, findNamedQuery, findNamedQueryStringParam, findNamedQueryStringParam, findNamedQueryStringParam, findNamedQueryStringParams, findNamedQueryStringParams, findNamedQueryStringParams, findNamedQueryStringParams, findNamedQueryStringParams, findNamedQueryStringParams, findNamedQueryStringParams, findNamedQueryStringParams, findNamedQueryStringParams, findNamedQueryStringParams, findNamedQueryStringParams, findSingleObject, getByClassId, getCountResult, getHibernateTemplate, getSession, getSessionFactory, index, indexEntity, refresh, refreshEntity, reIndex, reIndexEntity, remove, removeEntity, replicate, replicateEntity, save, saveEntity, saveRaw, saveRawEntity, setEventPublisher, setHibernateTemplate, setIndexer, setSessionFactory, unIndex, unIndexEntity, uniqueResultclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetRecentRunDetails, getRecentRunDetailsfindAll, findAllSorted, findByClassIds, findByClassIdsFiltered, refresh, refreshEntity, remove, removeEntity, replicate, replicateEntity, save, saveEntity, saveRaw, saveRawEntitypublic HibernateInternalRunDetailsDao(HibernateDatabaseCapabilities databaseCapabilities)
@Deprecated public HibernateInternalRunDetailsDao(ConfluenceHibernateConfig hibernateConfig)
public Class<SchedulerRunDetails> getPersistentClass()
ObjectDaoInternalEntityObject this Dao works with.getPersistentClass in interface ObjectDaogetPersistentClass in interface ObjectDaoInternal<SchedulerRunDetails>public int purgeOldRunDetails(SchedulerRunDetailsPurgeMode purgeMode, int limit)
purgeOldRunDetails in interface InternalRunDetailsDaopurgeMode - the purge mode (ALL or UNSUCCESSFUL)limit - the number of records to be purgedpublic long count(Optional<com.atlassian.scheduler.config.JobId> jobId, long timeToLiveThreshold, com.atlassian.scheduler.status.RunOutcome runOutcome)
count in interface InternalRunDetailsDaotimeToLiveThreshold - all job runs that occur before this threshold (from the past to now, in millis) will be includedrunOutcome - the run outcome that should be matchedpublic int purgeAll()
InternalRunDetailsDaopurgeAll in interface InternalRunDetailsDaopublic List<SchedulerRunDetails> getRecentRunDetails(ScheduledJobKey key, int limit)
getRecentRunDetails in interface InternalRunDetailsDaokey - the key of the scheduled joblimit - the number of run details to be retrievedpublic List<SchedulerRunDetails> getRecentRunDetails(ScheduledJobKey key)
getRecentRunDetails in interface InternalRunDetailsDaokey - the key of the scheduled jobScheduledJobStatusCopyright © 2003–2022 Atlassian. All rights reserved.