Class JobTracker


  • public class JobTracker
    extends Cache<String,​JobDetail>
    A JobTracker is an entry in a Gaffer cache service which is used to store details of jobs submitted to the graph.
    • Constructor Detail

      • JobTracker

        public JobTracker​(String suffixJobTrackerCacheName)
    • Method Detail

      • getCacheNameFrom

        public static String getCacheNameFrom​(String suffixJobTrackerCacheName)
      • getSuffixCacheName

        public String getSuffixCacheName()
      • addOrUpdateJob

        public void addOrUpdateJob​(JobDetail jobDetail,
                                   User user)
        Add or update the job details relating to a job in the job tracker cache.
        Parameters:
        jobDetail - the job details to update
        user - the user making the request
      • getJob

        public JobDetail getJob​(String jobId,
                                User user)
        Get the details of a specific job.
        Parameters:
        jobId - the ID of the job to lookup
        user - the user making the request to the job tracker
        Returns:
        the JobDetail object for the requested job
      • getAllJobs

        public Iterable<JobDetail> getAllJobs​(User user)
        Get all jobs from the job tracker cache.
        Parameters:
        user - the user making the request to the job tracker
        Returns:
        a Iterable containing all of the job details
      • getAllScheduledJobs

        public Iterable<JobDetail> getAllScheduledJobs()
        Get all scheduled jobs from the job tracker cache.
        Returns:
        a Iterable containing all of the scheduled job details