Class HarvestRunInfo


  • public class HarvestRunInfo
    extends Object
    Information on a single run of a harvest.
    • Method Detail

      • getHarvestID

        public long getHarvestID()
        Returns:
        the harvest id of this job
      • getHarvestName

        public String getHarvestName()
        Returns:
        the harvest name of this job
      • getRunNr

        public int getRunNr()
        Returns:
        the harvest run number of this job
      • getStartDate

        public Date getStartDate()
        Returns:
        the date when this job started
      • getEndDate

        public Date getEndDate()
        Returns:
        the date when this job ended
      • getBytesHarvested

        public long getBytesHarvested()
        Returns:
        bytes harvested by the job
      • getDocsHarvested

        public long getDocsHarvested()
        Returns:
        documents harvested by the job
      • getJobCount

        public int getJobCount()
        Get the total number of jobs created for this run.
        Returns:
        the total number of jobs created for this run.
      • getJobCount

        public int getJobCount​(JobStatus status)
        Get the number of jobs for this run that are in a specific status.
        Parameters:
        status - the specific status
        Returns:
        the number of jobs for this run that are in a specific status.
      • setStartDate

        public void setStartDate​(Date startDate)
        Set the start Date for this harvest job.
        Parameters:
        startDate - the start date
      • setEndDate

        public void setEndDate​(Date endDate)
        Set the end Date for this harvest job.
        Parameters:
        endDate - The end date
      • setBytesHarvested

        public void setBytesHarvested​(long bytesHarvested)
        Set the number of bytes harvested by this job.
        Parameters:
        bytesHarvested - number of bytes harvested
      • setDocsHarvested

        public void setDocsHarvested​(long docsHarvested)
        Set the number of documents harvested by this job.
        Parameters:
        docsHarvested - number of documents harvested
      • setStatusCount

        public void setStatusCount​(JobStatus status,
                                   int count)
        Update the count for a specific jobstatus.
        Parameters:
        status - a certain JobStatus
        count - the new count for this JobStatus.