@Internal public class HibernateInternalRunDetailsDao extends ConfluenceHibernateObjectDao implements InternalRunDetailsDao
InternalRunDetailsDao
interfaceHibernateObjectDao.Cacheability
cacheFactory, confluenceUserDao
SCHEDULER_RUN_DETAILS
NON_CACHEABLE
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 |
getPersistentClass() |
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, setCacheFactory, setConfluenceUserDao, updateModificationData
applyTransactionTimeout, applyTransactionTimeout, checkDaoConfig, createHibernateTemplate, findAll, findAllSorted, findByClassIds, findNamedQuery, findNamedQuery, findNamedQuery, findNamedQuery, findNamedQuery, findNamedQueryStringParam, findNamedQueryStringParam, findNamedQueryStringParam, findNamedQueryStringParam, findNamedQueryStringParam, findNamedQueryStringParams, findNamedQueryStringParams, findNamedQueryStringParams, findNamedQueryStringParams, findNamedQueryStringParams, findNamedQueryStringParams, findNamedQueryStringParams, findNamedQueryStringParams, findNamedQueryStringParams, findNamedQueryStringParams, findNamedQueryStringParams, findNamedQueryStringParams, findNamedQueryStringParams, findNamedQueryStringParams, findNamedQueryStringParams, findNamedQueryStringParams, findNamedQueryStringParams, findSingleObject, getByClassId, getCountResult, getHibernateTemplate, getSession, getSessionFactory, index, refresh, reIndex, remove, replicate, save, saveRaw, setHibernateTemplate, setIndexer, setSessionFactory, unIndex, uniqueResult
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
findAll, findAllSorted, findByClassIds, refresh, remove, replicate, save, saveRaw
public HibernateInternalRunDetailsDao(ConfluenceHibernateConfig hibernateConfig)
public Class getPersistentClass()
getPersistentClass
in interface ObjectDao
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–2018 Atlassian. All rights reserved.