public abstract class AbstractHarvestReport extends Object implements HarvestReport
Constructor and Description |
---|
AbstractHarvestReport()
Default constructor that does nothing.
|
AbstractHarvestReport(DomainStatsReport dsr)
Constructor from DomainStatsReports.
|
Modifier and Type | Method and Description |
---|---|
Long |
getByteCount(String domainName)
Get the number of bytes downloaded for the given domain.
|
StopReason |
getDefaultStopReason()
Returns the default stop reason initially assigned to every domain.
|
Set<String> |
getDomainNames()
Returns the set of domain names that are contained in hosts-report.txt (i.e.
|
Long |
getObjectCount(String domainName)
Get the number of objects found for the given domain.
|
protected DomainStats |
getOrCreateDomainStats(String domainName)
Attempts to get an already existing
DomainStats object for that domain, and if not found creates one with
zero values. |
StopReason |
getStopReason(String domainName)
Get the StopReason for the given domain.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
postProcess
public AbstractHarvestReport()
public AbstractHarvestReport(DomainStatsReport dsr)
files
- the result of parsing the crawl.log for domain statisticspublic StopReason getDefaultStopReason()
HarvestReport
getDefaultStopReason
in interface HarvestReport
public final Set<String> getDomainNames()
getDomainNames
in interface HarvestReport
public final Long getObjectCount(String domainName)
getObjectCount
in interface HarvestReport
domainName
- A domain name (as given by getDomainNames())public final Long getByteCount(String domainName)
getByteCount
in interface HarvestReport
domainName
- A domain name (as given by getDomainNames())public final StopReason getStopReason(String domainName)
getStopReason
in interface HarvestReport
domainName
- A domain name (as given by getDomainNames())ArgumentNotValid
- if null or empty domainNameprotected DomainStats getOrCreateDomainStats(String domainName)
DomainStats
object for that domain, and if not found creates one with
zero values.domainName
- the name of the domain to get DomainStats for.Copyright © 2005–2015 The Royal Danish Library, the Danish State and University Library, the National Library of France and the Austrian National Library.. All rights reserved.