|
||||||||||
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.FullFrontierReport
public class FullFrontierReport
Wraps an Heritrix full frontier report. As these reports can be big in size, this implementation relies on Berkeley DB direct persistence layer to store the report lines, allowing to store the lines partially in memory, and on disk.
Nested Class Summary | |
---|---|
(package private) static class |
FullFrontierReport.PersistentLine
|
(package private) static class |
FullFrontierReport.PersistentLineKey
|
class |
FullFrontierReport.ReportIterator
|
Method Summary | |
---|---|
void |
addLine(FrontierReportLine line)
Add a line to the report. |
void |
dispose()
Releases all resources once this report is to be discarded. |
FrontierReportLine |
getLineForDomain(java.lang.String domainName)
Returns the line of the frontier report corresponding to the queue for the given domain name. |
(package private) java.io.File |
getStorageDir()
Return the directory where the BDB is stored. |
FullFrontierReport.ReportIterator |
iterateOnCurrentSize()
Returns an iterator where lines are ordered by increasing currentSize. |
FullFrontierReport.ReportIterator |
iterateOnDomainName()
Returns an iterator where lines are ordered by domain name natural order. |
FullFrontierReport.ReportIterator |
iterateOnDuplicateCurrentSize(long dupValue)
Returns an iterator on lines having a given currentSize. |
FullFrontierReport.ReportIterator |
iterateOnDuplicateSpentBudget(long dupValue)
Returns an iterator on lines having a given totalSpend. |
FullFrontierReport.ReportIterator |
iterateOnSpentBudget()
Returns an iterator where lines are ordered by increasing totalSpend. |
FullFrontierReport.ReportIterator |
iterateOnTotalEnqueues()
Returns an iterator where lines are ordered by primary key order: first by decreasing totalEnqueues, then by domain name natural order. |
static FullFrontierReport |
parseContentsAsString(java.lang.String jobName,
java.lang.String contentsAsString)
Generates an Heritrix frontier report wrapper object by parsing the frontier report returned by the JMX controller as a string. |
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 |
Method Detail |
---|
public void dispose()
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 FullFrontierReport.ReportIterator iterateOnTotalEnqueues()
public FullFrontierReport.ReportIterator iterateOnDomainName()
public FullFrontierReport.ReportIterator iterateOnCurrentSize()
public FullFrontierReport.ReportIterator iterateOnDuplicateCurrentSize(long dupValue)
public FullFrontierReport.ReportIterator iterateOnSpentBudget()
public FullFrontierReport.ReportIterator iterateOnDuplicateSpentBudget(long dupValue)
public static FullFrontierReport parseContentsAsString(java.lang.String jobName, java.lang.String contentsAsString)
jobName
- the Heritrix job namecontentsAsString
- the text returned by the JMX call
java.io.File getStorageDir()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |