Class HibernateInternalRunDetailsDao

    • Constructor Detail

    • Method Detail

      • count

        public long count​(Optional<com.atlassian.scheduler.config.JobId> jobId,
                          long timeToLiveThreshold,
                          com.atlassian.scheduler.status.RunOutcome runOutcome)
        Specified by:
        count in interface InternalRunDetailsDao
        timeToLiveThreshold - all job runs that occur before this threshold (from the past to now, in millis) will be included
        runOutcome - the run outcome that should be matched
        Returns:
        the total count of job runs that satisfies the timeToLiveThreshold
      • purgeAll

        public int purgeAll()
        Description copied from interface: InternalRunDetailsDao
        This method purges all run details. This method is mainly used for testing purpose.
        Specified by:
        purgeAll in interface InternalRunDetailsDao
        Returns:
        the number of run details purged
      • getRecentRunDetails

        public List<SchedulerRunDetails> getRecentRunDetails​(com.atlassian.scheduler.config.JobId jobId,
                                                             int limit)
        Specified by:
        getRecentRunDetails in interface InternalRunDetailsDao
        Parameters:
        jobId - the JobId of the scheduled job
        limit - the number of run details to be retrieved
        Returns:
        a list of recent run details