Class FullFrontierReport

  • All Implemented Interfaces:
    FrontierReport, java.io.Serializable

    public class FullFrontierReport
    extends java.lang.Object
    Wraps an Heritrix 1 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.
    See Also:
    Serialized Form
    • Method Detail

      • dispose

        public void dispose()
        Releases all resources once this report is to be discarded. NB this method MUST be explicitly called!
      • getLineForDomain

        public 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.
      • parseContentsAsXML

        public static FullFrontierReport parseContentsAsXML​(java.lang.String jobName,
                                                            byte[] contentsAsXML,
                                                            java.lang.String tagName)
        Generates an Heritrix frontier report wrapper object by parsing the frontier report returned by the REST API controller as XML
        Parameters:
        jobName - the Heritrix job name
        contentsAsString - the text returned by the http REST call
        Returns:
        the report wrapper object
      • parseContentsAsString

        public 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.
        Parameters:
        jobName - the Heritrix job name
        contentsAsString - the text returned by the JMX call
        Returns:
        the report wrapper object
      • 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