Class HarvestInfo
- java.lang.Object
-
- dk.netarkivet.harvester.datamodel.HarvestInfo
-
public class HarvestInfo extends Object
Summary information about a specific harvest of a domain. This class is immutable.
-
-
Constructor Summary
Constructors Constructor Description HarvestInfo(Long harvestID, Long jobID, String domainName, String domainCfgName, Date date, long sizeDataRetrieved, long countObjectRetrieved, StopReason stopReason)
Create new harvest info instance.HarvestInfo(Long harvestID, String domainName, String domainCfgName, Date date, long sizeDataRetrieved, long countObjectRetrieved, StopReason stopReason)
Create new harvest info instance.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(Object o)
Autogenerated from IDEA.long
getCountObjectRetrieved()
Get the total number of objects downloaded.Date
getDate()
Get the date this harvest information was recorded.String
getDomainConfigurationName()
Get the domain configuration name of the harvest.String
getDomainName()
Get the domain name of the harvest.Long
getHarvestID()
Get the id of the harvest.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.String
toString()
A human readable representation.
-
-
-
Constructor Detail
-
HarvestInfo
public HarvestInfo(Long harvestID, String domainName, String domainCfgName, Date date, long sizeDataRetrieved, long countObjectRetrieved, StopReason stopReason)
Create new harvest info instance.- Parameters:
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 terminated
-
HarvestInfo
public HarvestInfo(Long harvestID, Long jobID, String domainName, String domainCfgName, Date date, long sizeDataRetrieved, long countObjectRetrieved, StopReason stopReason)
Create new harvest info instance.- Parameters:
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 terminated
-
-
Method Detail
-
getSizeDataRetrieved
public long getSizeDataRetrieved()
Get the total amount of data downloaded (bytes).- Returns:
- the total amount of data downloaded (bytes)
-
getCountObjectRetrieved
public long getCountObjectRetrieved()
Get the total number of objects downloaded.- Returns:
- the total number of objects downloaded
-
getStopReason
public StopReason getStopReason()
Get the reason the harvest stopped.- Returns:
- the reason the harvest stopped
-
getDate
public Date getDate()
Get the date this harvest information was recorded.- Returns:
- the date the harvest information was recorded
-
getHarvestID
public Long getHarvestID()
Get the id of the harvest.- Returns:
- the harvest ID
-
getJobID
public Long getJobID()
Get the id of the job, if available.- Returns:
- the job ID or null.
-
getDomainName
public String getDomainName()
Get the domain name of the harvest.- Returns:
- the domain name
-
getDomainConfigurationName
public String getDomainConfigurationName()
Get the domain configuration name of the harvest.- Returns:
- the domain configuration name
-
equals
public boolean equals(Object o)
Autogenerated from IDEA.- Overrides:
equals
in classObject
- Returns:
- true if object fields are equal
- See Also:
Object.equals(java.lang.Object)
-
hashCode
public int hashCode()
Autogenerated from IDEA.- Overrides:
hashCode
in classObject
- Returns:
- hashcode
- See Also:
Object.hashCode()
-
-