dk.netarkivet.harvester.datamodel
Class DomainHarvestInfo

java.lang.Object
  extended by dk.netarkivet.harvester.datamodel.DomainHarvestInfo

public class DomainHarvestInfo
extends java.lang.Object

DomainConfigPair class for extracted information on harvests on a specific domain.


Constructor Summary
DomainHarvestInfo(java.lang.String domainName, long jobID, java.lang.String harvestName, long harvestID, int harvestNum, java.lang.String configName, java.util.Date startDate, java.util.Date endDate, long bytesDownloaded, long docsDownloaded, StopReason reason)
          Constructor for a DomainHarvestInfo object.
 
Method Summary
 long getBytesDownloaded()
          Get the number of bytes that were downloaded by this job for this domain.
 java.lang.String getConfigName()
          Get the name of the configuration.
 long getDocsDownloaded()
          Get the number of documents (URIs) that were downloaded by this job for this domain.
 java.lang.String getDomain()
          Get the domain Name.
 java.util.Date getEndDate()
          Get the date when the harvestjob finished.
 long getHarvestID()
          Get the ID of the harvestdefinition behind the job.
 java.lang.String getHarvestName()
          Get the name of the harvestdefinition behind the job.
 int getHarvestNum()
          Get the number of the harvest.
 long getJobID()
          Get the Id of the job that harvested this domain.
 java.util.Date getStartDate()
          Get the date when the harvestjob started.
 StopReason getStopReason()
          Get the reason why the harvestjob stopped harvesting any more URIs from this domain.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DomainHarvestInfo

DomainHarvestInfo(java.lang.String domainName,
                  long jobID,
                  java.lang.String harvestName,
                  long harvestID,
                  int harvestNum,
                  java.lang.String configName,
                  java.util.Date startDate,
                  java.util.Date endDate,
                  long bytesDownloaded,
                  long docsDownloaded,
                  StopReason reason)
Constructor for a DomainHarvestInfo object.

Parameters:
domainName - The given domain
jobID - The Id of the job that harvested this domain
harvestName - The name of the harvestdefinition behind the job
harvestID - The ID of the harvestdefinition behind the job
harvestNum - The number of the harvest
configName - The name of the configuration
startDate - The date when the harvestjob started
endDate - The date when the harvestjob finished
bytesDownloaded - How many bytes were downloaded by this job for this domain
docsDownloaded - How many documents(URIs) were downloaded by this job for this domain.
reason - The reason why the harvestjob stopped harvesting any more URIs from this domain.
Method Detail

getDomain

public java.lang.String getDomain()
Get the domain Name.

Returns:
the domain Name.

getJobID

public long getJobID()
Get the Id of the job that harvested this domain.

Returns:
the Id of the job that harvested this domain

getHarvestName

public java.lang.String getHarvestName()
Get the name of the harvestdefinition behind the job.

Returns:
The name of the harvestdefinition behind the job

getHarvestID

public long getHarvestID()
Get the ID of the harvestdefinition behind the job.

Returns:
The ID of the harvestdefinition behind the job

getHarvestNum

public int getHarvestNum()
Get the number of the harvest.

Returns:
The number of the harvest

getConfigName

public java.lang.String getConfigName()
Get the name of the configuration.

Returns:
The name of the configuration

getStartDate

public java.util.Date getStartDate()
Get the date when the harvestjob started.

Returns:
Get the date when the harvestjob started.

getEndDate

public java.util.Date getEndDate()
Get the date when the harvestjob finished.

Returns:
Get the date when the harvestjob finished.

getBytesDownloaded

public long getBytesDownloaded()
Get the number of bytes that were downloaded by this job for this domain.

Returns:
The number of bytes that were downloaded by this job for this domain.

getDocsDownloaded

public long getDocsDownloaded()
Get the number of documents (URIs) that were downloaded by this job for this domain.

Returns:
The number of documents (URIs) that were downloaded by this job for this domain.

getStopReason

public StopReason getStopReason()
Get the reason why the harvestjob stopped harvesting any more URIs from this domain.

Returns:
The reason why the harvestjob stopped harvesting any more URIs from this domain.