Class HarvestRunInfo
- java.lang.Object
-
- dk.netarkivet.harvester.datamodel.HarvestRunInfo
-
public class HarvestRunInfo extends Object
Information on a single run of a harvest.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description long
getBytesHarvested()
long
getDocsHarvested()
Date
getEndDate()
long
getHarvestID()
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()
Date
getStartDate()
void
setBytesHarvested(long bytesHarvested)
Set the number of bytes harvested by this job.void
setDocsHarvested(long docsHarvested)
Set the number of documents harvested by this job.void
setEndDate(Date endDate)
Set the end Date for this harvest job.void
setStartDate(Date startDate)
Set the start Date for this harvest job.void
setStatusCount(JobStatus status, int count)
Update the count for a specific jobstatus.
-
-
-
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 JobStatuscount
- the new count for this JobStatus.
-
-