|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectdk.netarkivet.harvester.datamodel.HarvestRunInfo
public class HarvestRunInfo
Information on a single run of a harvest.
Constructor Summary | |
---|---|
HarvestRunInfo(long harvestID,
java.lang.String harvestName,
int runNr)
Constructor used to read harvest run information from database. |
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)
Set the number of bytes harvested by this job. |
void |
setDocsHarvested(long docsHarvested)
Set the number of documents harvested by this job. |
void |
setEndDate(java.util.Date endDate)
Set the end Date for this harvest job. |
void |
setStartDate(java.util.Date startDate)
Set the start Date for this harvest job. |
void |
setStatusCount(JobStatus status,
int count)
Update the count for a specific jobstatus. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
HarvestRunInfo(long harvestID, java.lang.String harvestName, int runNr)
harvestID
- the ID of the harvest jobharvestName
- the name of the harvest jobrunNr
- the run number of this harvest jobMethod Detail |
---|
public long getHarvestID()
public java.lang.String getHarvestName()
public int getRunNr()
public java.util.Date getStartDate()
public java.util.Date getEndDate()
public long getBytesHarvested()
public long getDocsHarvested()
public int getJobCount()
public int getJobCount(JobStatus status)
status
- the specific status
public void setStartDate(java.util.Date startDate)
startDate
- the start datepublic void setEndDate(java.util.Date endDate)
endDate
- The end datepublic void setBytesHarvested(long bytesHarvested)
bytesHarvested
- number of bytes harvestedpublic void setDocsHarvested(long docsHarvested)
docsHarvested
- number of documents harvestedpublic void setStatusCount(JobStatus status, int count)
status
- a certain JobStatuscount
- the new count for this JobStatus.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |