|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectdk.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
|
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[] |
getBiggestTotalEnqueues(int howMany)
Returns the N lines with the biggest totalEnqueues values, corresponding to active queues (i.e. |
FrontierReportLine[] |
getExhaustedQueues(int maxSize)
Returns the exhausted queues, e.g. |
FrontierReportLine |
getLineForDomain(java.lang.String domainName)
Returns the line of the frontier report corresponding to the queue for the given domain name. |
FrontierReportLine[] |
getRetiredQueues(int maxSize)
Returns the retired queues, e.g. |
(package private) java.io.File |
getStorageDir()
Return the directory where the BDB is stored. |
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 FrontierReportLine[] getBiggestTotalEnqueues(int howMany)
howMany
- how many lines to fetch (N)
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()
public FrontierReportLine[] getRetiredQueues(int maxSize)
getRetiredQueues
in interface FrontierReport
getRetiredQueues
in class AbstractFrontierReport
maxSize
- maximum count of elements to fetch
public FrontierReportLine[] getExhaustedQueues(int maxSize)
getExhaustedQueues
in interface FrontierReport
getExhaustedQueues
in class AbstractFrontierReport
maxSize
- maximum count of elements to fetch
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |