public class InMemoryFrontierReport extends Object implements Serializable
The report lines are sorted according to the natural order defined by FrontierReportLine
, e.g. descending
size of the queue.
Constructor and Description |
---|
InMemoryFrontierReport(String jobName)
Builds an empty report.
|
Modifier and Type | Method and Description |
---|---|
void |
addLine(FrontierReportLine line)
Add a line to the report.
|
String |
getJobName() |
FrontierReportLine |
getLineForDomain(String domainName)
Returns the line of the frontier report corresponding to the queue for the given domain name.
|
FrontierReportLine[] |
getLines()
Returns the lines of the report.
|
int |
getSize()
Returns the report size, e.g.
|
long |
getTimestamp() |
protected void |
setJobName(String jobName) |
void |
setTimestamp(long timestamp) |
public InMemoryFrontierReport(String jobName)
jobName
- the Heritrix job namepublic FrontierReportLine[] getLines()
public void addLine(FrontierReportLine line)
FrontierReport
addLine
in interface FrontierReport
line
- line to add.public FrontierReportLine getLineForDomain(String domainName)
FrontierReport
getLineForDomain
in interface FrontierReport
domainName
- the domain name.public int getSize()
public String getJobName()
getJobName
in interface FrontierReport
public long getTimestamp()
getTimestamp
in interface FrontierReport
protected void setJobName(String jobName)
jobName
- the jobName to setpublic void setTimestamp(long timestamp)
timestamp
- the timestamp to setCopyright © 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.