Class JobStats

java.lang.Object
org.jobrunr.storage.JobStats
All Implemented Interfaces:
Comparable<JobStats>
Direct Known Subclasses:
JobStatsExtended

public class JobStats extends Object implements Comparable<JobStats>
  • Constructor Details

    • JobStats

      protected JobStats(JobStats jobStats)
    • JobStats

      public JobStats(Instant timeStamp, Long total, Long scheduled, Long enqueued, Long processing, Long failed, Long succeeded, Long allTimeSucceeded, Long deleted, int recurringJobs, int backgroundJobServers)
  • Method Details

    • empty

      public static JobStats empty()
    • of

      public static JobStats of(Instant instant, JobStats jobStats)
    • getTimeStamp

      public Instant getTimeStamp()
    • getQueryDurationInMillis

      public Long getQueryDurationInMillis()
    • getTotal

      public Long getTotal()
    • getScheduled

      public Long getScheduled()
    • getEnqueued

      public Long getEnqueued()
    • getProcessing

      public Long getProcessing()
    • getFailed

      public Long getFailed()
    • getSucceeded

      public Long getSucceeded()
    • getAllTimeSucceeded

      public Long getAllTimeSucceeded()
    • getDeleted

      public Long getDeleted()
    • getRecurringJobs

      public int getRecurringJobs()
    • getBackgroundJobServers

      public int getBackgroundJobServers()
    • compareTo

      public int compareTo(JobStats jobStats)
      Specified by:
      compareTo in interface Comparable<JobStats>