dk.netarkivet.harvester.harvesting.frontier
Class AbstractFrontierReport

java.lang.Object
  extended by dk.netarkivet.harvester.harvesting.frontier.AbstractFrontierReport
All Implemented Interfaces:
FrontierReport, java.io.Serializable
Direct Known Subclasses:
FullFrontierReport, InMemoryFrontierReport

abstract class AbstractFrontierReport
extends java.lang.Object
implements FrontierReport, java.io.Serializable

Base abstract implementation of an Heritrix frontier report wrapper.


Constructor Summary
AbstractFrontierReport()
          Default empty contrcutor.
AbstractFrontierReport(java.lang.String jobName)
          Initializes an empty Heritrix frontier report wrapper object.
 
Method Summary
abstract  void addLine(FrontierReportLine line)
          Add a line to the report.
 java.lang.String getJobName()
           
abstract  FrontierReportLine getLineForDomain(java.lang.String domainName)
          Returns the line of the frontier report corresponding to the queue for the given domain name.
 long getTimestamp()
           
protected  void setJobName(java.lang.String jobName)
           
 void setTimestamp(long timestamp)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AbstractFrontierReport

AbstractFrontierReport()
Default empty contrcutor.


AbstractFrontierReport

public AbstractFrontierReport(java.lang.String jobName)
Initializes an empty Heritrix frontier report wrapper object.

Parameters:
jobName - the Heritrix job name
Method Detail

getJobName

public java.lang.String getJobName()
Specified by:
getJobName in interface FrontierReport
Returns:
the jobName

getTimestamp

public long getTimestamp()
Specified by:
getTimestamp in interface FrontierReport
Returns:
the creation timestamp

setJobName

protected void setJobName(java.lang.String jobName)
Parameters:
jobName - the jobName to set

setTimestamp

public void setTimestamp(long timestamp)
Parameters:
timestamp - the timestamp to set

addLine

public abstract void addLine(FrontierReportLine line)
Description copied from interface: FrontierReport
Add a line to the report.

Specified by:
addLine in interface FrontierReport
Parameters:
line - line to add.

getLineForDomain

public abstract FrontierReportLine getLineForDomain(java.lang.String domainName)
Description copied from interface: FrontierReport
Returns the line of the frontier report corresponding to the queue for the given domain name.

Specified by:
getLineForDomain in interface FrontierReport
Parameters:
domainName - the domain name.
Returns:
null if no queue for this domain name exists, otherwise the line of the frontier report corresponding to the queue for the given domain name.