@Internal public class HibernateInternalRunDetailsDao extends ConfluenceHibernateObjectDao<SchedulerRunDetails> implements InternalRunDetailsDao
InternalRunDetailsDao
interfaceHibernateObjectDao.Cacheability
cacheFactory, confluenceUserDao
SCHEDULER_RUN_DETAILS
Constructor and Description |
---|
HibernateInternalRunDetailsDao(ConfluenceHibernateConfig hibernateConfig) |
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, updateModificationData
applyTransactionTimeout, 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, setHibernateTemplate, setIndexer, setSessionFactory, unIndex, unIndexEntity, uniqueResult
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
findAll, findAllSorted, findByClassIds, findByClassIdsFiltered, refresh, refreshEntity, remove, removeEntity, replicate, replicateEntity, save, saveEntity, saveRaw, saveRawEntity
public HibernateInternalRunDetailsDao(ConfluenceHibernateConfig hibernateConfig)
public Class<SchedulerRunDetails> getPersistentClass()
ObjectDaoInternal
EntityObject
this Dao works with.getPersistentClass
in interface ObjectDao
getPersistentClass
in interface ObjectDaoInternal<SchedulerRunDetails>
public int purgeOldRunDetails(SchedulerRunDetailsPurgeMode purgeMode, int limit)
purgeOldRunDetails
in interface InternalRunDetailsDao
purgeMode
- 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 InternalRunDetailsDao
timeToLiveThreshold
- 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()
InternalRunDetailsDao
purgeAll
in interface InternalRunDetailsDao
public List<SchedulerRunDetails> getRecentRunDetails(ScheduledJobKey key, int limit)
getRecentRunDetails
in interface InternalRunDetailsDao
key
- the key of the scheduled joblimit
- the number of run details to be retrievedpublic List<SchedulerRunDetails> getRecentRunDetails(ScheduledJobKey key)
getRecentRunDetails
in interface InternalRunDetailsDao
key
- the key of the scheduled jobScheduledJobStatus
Copyright © 2003–2020 Atlassian. All rights reserved.