Class AcquiredJobs


  • public class AcquiredJobs
    extends java.lang.Object
    Author:
    Tom Baeyens, Daniel Meyer
    • Field Detail

      • numberOfJobsAttemptedToAcquire

        protected int numberOfJobsAttemptedToAcquire
      • acquiredJobBatches

        protected java.util.List<java.util.List<java.lang.String>> acquiredJobBatches
      • acquiredJobs

        protected java.util.Set<java.lang.String> acquiredJobs
      • numberOfJobsFailedToLock

        protected int numberOfJobsFailedToLock
    • Constructor Detail

      • AcquiredJobs

        public AcquiredJobs​(int numberOfJobsAttemptedToAcquire)
    • Method Detail

      • getJobIdBatches

        public java.util.List<java.util.List<java.lang.String>> getJobIdBatches()
      • addJobIdBatch

        public void addJobIdBatch​(java.util.List<java.lang.String> jobIds)
      • addJobIdBatch

        public void addJobIdBatch​(java.lang.String jobId)
      • contains

        public boolean contains​(java.lang.String jobId)
      • size

        public int size()
      • removeJobId

        public void removeJobId​(java.lang.String id)
      • getNumberOfJobsFailedToLock

        public int getNumberOfJobsFailedToLock()
      • getNumberOfJobsAttemptedToAcquire

        public int getNumberOfJobsAttemptedToAcquire()