|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object dk.netarkivet.harvester.datamodel.HarvestInfo
public class HarvestInfo
Summary information about a specific harvest of a domain. This class is immutable.
Constructor Summary | |
---|---|
HarvestInfo(java.lang.Long harvestID,
java.lang.Long jobID,
java.lang.String domainName,
java.lang.String domainCfgName,
java.util.Date date,
long sizeDataRetrieved,
long countObjectRetrieved,
StopReason stopReason)
Create new harvest info instance. |
|
HarvestInfo(java.lang.Long harvestID,
java.lang.String domainName,
java.lang.String domainCfgName,
java.util.Date date,
long sizeDataRetrieved,
long countObjectRetrieved,
StopReason stopReason)
Create new harvest info instance. |
Method Summary | |
---|---|
boolean |
equals(java.lang.Object o)
Autogenerated from IDEA. |
long |
getCountObjectRetrieved()
Get the total number of objects downloaded. |
java.util.Date |
getDate()
Get the date this harvest information was recorded. |
java.lang.String |
getDomainConfigurationName()
Get the domain configuration name of the harvest. |
java.lang.String |
getDomainName()
Get the domain name of the harvest. |
java.lang.Long |
getHarvestID()
Get the id of the harvest. |
(package private) long |
getID()
Get the ID of this harvestinfo. |
java.lang.Long |
getJobID()
Get the id of the job, if available. |
long |
getSizeDataRetrieved()
Get the total amount of data downloaded (bytes). |
StopReason |
getStopReason()
Get the reason the harvest stopped. |
int |
hashCode()
Autogenerated from IDEA. |
(package private) boolean |
hasID()
Check if this harvestinfo has an ID set yet (doesn't happen until the DBDAO persists it). |
(package private) void |
setID(long id)
Set the ID of this harvestinfo. |
java.lang.String |
toString()
A human readable representation. |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public HarvestInfo(java.lang.Long harvestID, java.lang.String domainName, java.lang.String domainCfgName, java.util.Date date, long sizeDataRetrieved, long countObjectRetrieved, StopReason stopReason)
harvestID
- The id of the harvestdomainName
- The name of the DomaindomainCfgName
- The name of the Domain configurationdate
- The date of the harvestsizeDataRetrieved
- The number of bytes retrieved for this DomaincountObjectRetrieved
- The number of objects retrieved for this DomainstopReason
- The reason why the current harvest terminatedpublic HarvestInfo(java.lang.Long harvestID, java.lang.Long jobID, java.lang.String domainName, java.lang.String domainCfgName, java.util.Date date, long sizeDataRetrieved, long countObjectRetrieved, StopReason stopReason)
harvestID
- The id of the harvestjobID
- The id of the job, if availabledomainName
- The name of the DomaindomainCfgName
- The name of the Domain configurationdate
- The date of the harvestsizeDataRetrieved
- The number of bytes retrieved for this DomaincountObjectRetrieved
- The number of objects retrieved for this DomainstopReason
- The reason why the current harvest terminatedMethod Detail |
---|
public long getSizeDataRetrieved()
public long getCountObjectRetrieved()
public StopReason getStopReason()
public java.util.Date getDate()
public java.lang.Long getHarvestID()
public java.lang.Long getJobID()
public java.lang.String getDomainName()
public java.lang.String getDomainConfigurationName()
long getID()
void setID(long id)
id
- the new ID of this harvestinfoboolean hasID()
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
Object.equals(java.lang.Object)
public int hashCode()
hashCode
in class java.lang.Object
Object.hashCode()
public java.lang.String toString()
toString
in class java.lang.Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |