Class JobResultsData


  • public class JobResultsData
    extends java.lang.Object
    Stores all the data for the job results page
    • Constructor Summary

      Constructors 
      Constructor Description
      JobResultsData​(IJob job)
      Initialise the data object for the supplied job
    • Constructor Detail

      • JobResultsData

        public JobResultsData​(IJob job)
        Initialise the data object for the supplied job
        Parameters:
        job - the job to show the results for
    • Method Detail

      • getGroupCounts

        public java.util.Map<java.lang.Integer,​java.lang.Integer> getGroupCounts()
        Get the group count map
        Returns:
        the map
      • getJSONMap

        public java.lang.String getJSONMap()
        Convert this object to a JSON object, used by the JavaScript in the UI
        Returns:
        the JSON equivalent of this object
      • getJob

        public IJob getJob()
        Get the job showing the results for
        Returns:
        the job
      • getPersistentId

        public long getPersistentId()
        Get hte persistent id of the job
        Returns:
        the job id
      • getStatus

        public java.lang.String getStatus()
        Get the status of the job
        Returns:
        the status as a string
      • getFileCount

        public int getFileCount()
        Get the number of files in this job
        Returns:
        the number of files
      • getTasks

        public java.util.List<TaskWrapper> getTasks()
        Get the list of tasks in the job
        Returns:
        the list of tasks, converted to the TaskWrapper object
      • getTimestamp

        public java.lang.String getTimestamp()
        Get the time the job started
        Returns:
        the time as a formatted string