|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object dk.netarkivet.harvester.harvesting.frontier.AbstractFrontierReport dk.netarkivet.harvester.harvesting.frontier.InMemoryFrontierReport
public class InMemoryFrontierReport
Implements a frontier report wrapper that is stored in memory.
This implementation is intended for small reports that are the result of
the filtering of a full frontier report obtained from Heritrix.
This implementation is serializable, so it can be transmitted
in a JMS message.
The report lines are sorted according to the natural order defined by
FrontierReportLine
, e.g. descending size of the queue.
Constructor Summary | |
---|---|
InMemoryFrontierReport()
Default empty contructor. |
|
InMemoryFrontierReport(java.lang.String jobName)
Builds an empty report. |
Method Summary | |
---|---|
void |
addLine(FrontierReportLine line)
Add a line to the report. |
FrontierReportLine |
getLineForDomain(java.lang.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. |
Methods inherited from class dk.netarkivet.harvester.harvesting.frontier.AbstractFrontierReport |
---|
getJobName, getTimestamp, setJobName, setTimestamp |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
InMemoryFrontierReport()
public InMemoryFrontierReport(java.lang.String jobName)
jobName
- the Heritrix job nameMethod Detail |
---|
public FrontierReportLine[] getLines()
public void addLine(FrontierReportLine line)
FrontierReport
addLine
in interface FrontierReport
addLine
in class AbstractFrontierReport
line
- line to add.public FrontierReportLine getLineForDomain(java.lang.String domainName)
FrontierReport
getLineForDomain
in interface FrontierReport
getLineForDomain
in class AbstractFrontierReport
domainName
- the domain name.
public int getSize()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |