dk.netarkivet.harvester.datamodel
Class HarvestRunInfo
java.lang.Object
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)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
HarvestRunInfo
HarvestRunInfo(long harvestID,
java.lang.String harvestName,
int runNr)
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)