Class InMemoryFrontierReport

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

    public class InMemoryFrontierReport
    extends java.lang.Object
    implements java.io.Serializable
    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 1. 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.

    See Also:
    Serialized Form
    • Constructor Detail

      • InMemoryFrontierReport

        public InMemoryFrontierReport​(java.lang.String jobName)
        Builds an empty report.
        Parameters:
        jobName - the Heritrix job name
    • Method Detail

      • 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.
      • getSize

        public int getSize()
        Returns the report size, e.g. the count of report lines.
        Returns:
        the report size
      • 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