dk.netarkivet.harvester.datamodel
Class HarvestRunInfo

java.lang.Object
  extended by dk.netarkivet.harvester.datamodel.HarvestRunInfo

public class HarvestRunInfo
extends java.lang.Object

Information on a single run of a harvest.


Constructor Summary
HarvestRunInfo(long harvestID, java.lang.String harvestName, int runNr)
           
 
Method Summary
 long getBytesHarvested()
           
 long getDocsHarvested()
           
 java.util.Date getEndDate()
           
 long getHarvestID()
           
 java.lang.String getHarvestName()
           
 int getJobCount()
          Get the total number of jobs created for this run.
 int getJobCount(JobStatus status)
          Get the number of jobs for this run that are in a specific status.
 int getRunNr()
           
 java.util.Date getStartDate()
           
 void setBytesHarvested(long bytesHarvested)
           
 void setDocsHarvested(long docsHarvested)
           
 void setEndDate(java.util.Date endDate)
           
 void setStartDate(java.util.Date startDate)
           
 void setStatusCount(JobStatus status, int count)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

HarvestRunInfo

HarvestRunInfo(long harvestID,
               java.lang.String harvestName,
               int runNr)
Method Detail

getHarvestID

public long getHarvestID()

getHarvestName

public java.lang.String getHarvestName()

getRunNr

public int getRunNr()

getStartDate

public java.util.Date getStartDate()

getEndDate

public java.util.Date getEndDate()

getBytesHarvested

public long getBytesHarvested()

getDocsHarvested

public long getDocsHarvested()

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(java.util.Date startDate)

setEndDate

public void setEndDate(java.util.Date endDate)

setBytesHarvested

public void setBytesHarvested(long bytesHarvested)

setDocsHarvested

public void setDocsHarvested(long docsHarvested)

setStatusCount

public void setStatusCount(JobStatus status,
                           int count)