Class FrontierReportLine

  • All Implemented Interfaces:
    Serializable, Comparable<FrontierReportLine>

    @Persistent
    public class FrontierReportLine
    extends Object
    implements Serializable, Comparable<FrontierReportLine>
    Wraps a line of the frontier report. As of Heritrix 1.14.4 the format of a frontier report line sequentially lists the following tokens, separated by a whitespace :

    1. queue
    2. currentSize
    3. totalEnqueues
    4. sessionBalance
    5. lastCost(averageCost)
    6. lastDequeueTime
    7. wakeTime
    8. totalSpend/totalBudget
    9. errorCount
    10. lastPeekUri
    11. lastQueuedUri

    In Heritrix 3.2.0, there is a new field named precedence which comes after queue. More information here : https://webarchive.jira.com/wiki/display/Heritrix/Precedence+Feature+Notes

    This class implements a natural order : comparisons are made : - first by decreasing values of totalEnqueues - secondly by domain name (string natural order)

    Thanks to Gordon Mohr at Internet Archive for explaining the exact semantics of the frontier report fields.

    See Also:
    Serialized Form
    • Constructor Detail

      • FrontierReportLine

        public FrontierReportLine()
        Default empty constructor.
      • FrontierReportLine

        protected FrontierReportLine​(FrontierReportLine original)
        Builds a cloned line.
        Parameters:
        original - the line to clone
    • Method Detail

      • getDomainName

        public String getDomainName()
        Returns:
        the domainName
      • setDomainName

        public void setDomainName​(String domainName)
        Parameters:
        domainName - the domainName to set
      • getCurrentSize

        public long getCurrentSize()
        Returns:
        the currentSize
      • setPrecedence

        public void setPrecedence​(long precedence)
        Parameters:
        precedence - the precedence to set
      • getPrecedence

        public long getPrecedence()
        Returns:
        the precedence
      • setCurrentSize

        public void setCurrentSize​(long currentSize)
        Parameters:
        currentSize - the currentSize to set
      • getTotalEnqueues

        public long getTotalEnqueues()
        Returns:
        the totalEnqueues
      • setTotalEnqueues

        public void setTotalEnqueues​(long totalEnqueues)
        Parameters:
        totalEnqueues - the totalEnqueues to set
      • getSessionBalance

        public long getSessionBalance()
        Returns:
        the sessionBalance
      • setSessionBalance

        public void setSessionBalance​(long sessionBalance)
        Parameters:
        sessionBalance - the sessionBalance to set
      • getLastCost

        public double getLastCost()
        Returns:
        the lastCost
      • setLastCost

        public void setLastCost​(double lastCost)
        Parameters:
        lastCost - the lastCost to set
      • getAverageCost

        public double getAverageCost()
        Returns:
        the averageCost
      • setAverageCost

        public void setAverageCost​(double averageCost)
        Parameters:
        averageCost - the averageCost to set
      • getLastDequeueTime

        public String getLastDequeueTime()
        Returns:
        the lastDequeueTime
      • setLastDequeueTime

        public void setLastDequeueTime​(String lastDequeueTime)
        Parameters:
        lastDequeueTime - the lastDequeueTime to set
      • getWakeTime

        public String getWakeTime()
        Returns:
        the wakeTime
      • setWakeTime

        public void setWakeTime​(String wakeTime)
        Parameters:
        wakeTime - the wakeTime to set
      • getTotalSpend

        public long getTotalSpend()
        Returns:
        the totalSpend
      • setTotalSpend

        public void setTotalSpend​(long totalSpend)
        Parameters:
        totalSpend - the totalSpend to set
      • getTotalBudget

        public long getTotalBudget()
        Returns:
        the totalBudget
      • setTotalBudget

        public void setTotalBudget​(long totalBudget)
        Parameters:
        totalBudget - the totalBudget to set
      • getErrorCount

        public long getErrorCount()
        Returns:
        the errorCount
      • setErrorCount

        public void setErrorCount​(long errorCount)
        Parameters:
        errorCount - the errorCount to set
      • getLastPeekUri

        public String getLastPeekUri()
        Returns:
        the lastPeekUri
      • setLastPeekUri

        public void setLastPeekUri​(String lastPeekUri)
        Parameters:
        lastPeekUri - the lastPeekUri to set
      • getLastQueuedUri

        public String getLastQueuedUri()
        Returns:
        the lastQueuedUri
      • setLastQueuedUri

        public void setLastQueuedUri​(String lastQueuedUri)
        Parameters:
        lastQueuedUri - the lastQueuedUri to set
      • equals

        public boolean equals​(Object obj)
        There is one queue per domain, so equality is based on the domain name.
        Overrides:
        equals in class Object
      • hashCode

        public int hashCode()
        There is one queue per domain, so hashcode is based on the domain name.
        Overrides:
        hashCode in class Object
      • getQueueId

        public String getQueueId()
      • getQueueSize

        public long getQueueSize()