Package com.avoka.fc.core.dao
Class ScheduledJobHistoryDao
java.lang.Object
com.avoka.core.dao.BaseDao
com.avoka.fc.core.dao.AbstractDao
com.avoka.fc.core.dao.ScheduledJobHistoryDao
Provides a Scheduled Job History DAO class.
- Since:
- 4.3.0
-
Field Summary
Fields inherited from class com.avoka.core.dao.BaseDao
FETCH_LIMIT, STATEMENT_MAX_NO_PARAMETERS
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiongetScheduledJobHistory
(String scheduledJobName, String status, Integer minDuration, Date startDate, Date endDate, int pageSize, int fetchLimit) Return the list of ScheduledJobHistory records for the given query parameters.Return the list of Quartz Scheduled Job names.int
purgeScheduledJobHistory
(int maxAgeDays, int fetchLimit, long maxTimeMs) Delete ScheduledJobHistory records older than a specified number of days.Methods inherited from class com.avoka.fc.core.dao.AbstractDao
andFilterClientExcludeNull, andFilterClientIncludeNull, andFilterClientOnly, isClientAccessAllowed, performQueryConfigCached
Methods inherited from class com.avoka.core.dao.BaseDao
addOrdering, addOrderingCaseInsensitive, addOrderingCaseSensitive, andQueryBetween, andQueryInExp, andQueryInExp, andQueryLikeIgnoreCaseExp, andQueryMatchDbExp, andQueryMatchExp, andQueryMatchIsNotNull, andQueryMatchIsNull, andQueryNoMatchExp, andQueryNotTrue, deleteObject, deleteObjects, findObject, getDataContext, getFetchLimit, getLogger, getObjectForPK, newObject, orQueryLikeIgnoreCaseExp, orQueryMatchExp, performNamedQuery, performNamedQuery, performNamedQuery, performNamedQuery, performNonSelectingQuery, performNonSelectingQuery, performNonSelectingQuery, performNonSelectingQuery, performQuery, performQuery, performQuery, registerNewObject, setCacheStrategy, setFetchLimit, setLocalCacheStrategy, setLocalCacheStrategy, setSharedCacheStrategy, toMap, toMap
-
Constructor Details
-
ScheduledJobHistoryDao
public ScheduledJobHistoryDao()
-
-
Method Details
-
getScheduledJobNames
Return the list of Quartz Scheduled Job names.- Returns:
- the list of Quartz Scheduled Job names.
- Since:
- 18.5.0
-
getScheduledJobHistory
public List<ScheduledJobHistory> getScheduledJobHistory(String scheduledJobName, String status, Integer minDuration, Date startDate, Date endDate, int pageSize, int fetchLimit) Return the list of ScheduledJobHistory records for the given query parameters.- Parameters:
scheduledJobName
- the scheduled job namestatus
- the service status invocation [ 'Completed' | 'Error' ]minDuration
- the minimum duration in msstartDate
- the start dateendDate
- the end datepageSize
- the query page sizefetchLimit
- the query fetch limit- Returns:
- the list of ScheduledJobHistory records for the given query parameters
-
purgeScheduledJobHistory
public int purgeScheduledJobHistory(int maxAgeDays, int fetchLimit, long maxTimeMs) Delete ScheduledJobHistory records older than a specified number of days.- Parameters:
maxAgeDays
- The age in days above which records will be deleted.fetchLimit
- the maximum number of records to delete (only used if > 0)maxTimeMs
- the maximum time that can be used to purge records- Returns:
- the number of records that were deleted
-