Class ScheduledJobHistoryDao


public class ScheduledJobHistoryDao extends AbstractDao
Provides a Scheduled Job History DAO class.
Since:
4.3.0
  • Constructor Details

    • ScheduledJobHistoryDao

      public ScheduledJobHistoryDao()
  • Method Details

    • getScheduledJobNames

      public List<String> 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 name
      status - the service status invocation [ 'Completed' | 'Error' ]
      minDuration - the minimum duration in ms
      startDate - the start date
      endDate - the end date
      pageSize - the query page size
      fetchLimit - 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