Class FrontierReportLine
- java.lang.Object
-
- dk.netarkivet.harvester.harvesting.frontier.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 :- queue
- currentSize
- totalEnqueues
- sessionBalance
- lastCost(averageCost)
- lastDequeueTime
- wakeTime
- totalSpend/totalBudget
- errorCount
- lastPeekUri
- 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 Summary
Constructors Modifier Constructor Description FrontierReportLine()
Default empty constructor.protected
FrontierReportLine(FrontierReportLine original)
Builds a cloned line.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
compareTo(FrontierReportLine l)
Default order relation is descending size of the queue (totalEnqueues).boolean
equals(Object obj)
There is one queue per domain, so equality is based on the domain name.double
getAverageCost()
long
getCurrentSize()
String
getDomainName()
long
getErrorCount()
double
getLastCost()
String
getLastDequeueTime()
String
getLastPeekUri()
String
getLastQueuedUri()
long
getPrecedence()
String
getQueueId()
long
getQueueSize()
long
getSessionBalance()
long
getTotalBudget()
long
getTotalEnqueues()
long
getTotalSpend()
String
getWakeTime()
int
hashCode()
There is one queue per domain, so hashcode is based on the domain name.void
setAverageCost(double averageCost)
void
setCurrentSize(long currentSize)
void
setDomainName(String domainName)
void
setErrorCount(long errorCount)
void
setLastCost(double lastCost)
void
setLastDequeueTime(String lastDequeueTime)
void
setLastPeekUri(String lastPeekUri)
void
setLastQueuedUri(String lastQueuedUri)
void
setPrecedence(long precedence)
void
setSessionBalance(long sessionBalance)
void
setTotalBudget(long totalBudget)
void
setTotalEnqueues(long totalEnqueues)
void
setTotalSpend(long totalSpend)
void
setWakeTime(String wakeTime)
-
-
-
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
-
compareTo
public int compareTo(FrontierReportLine l)
Default order relation is descending size of the queue (totalEnqueues).- Specified by:
compareTo
in interfaceComparable<FrontierReportLine>
-
equals
public boolean equals(Object obj)
There is one queue per domain, so equality is based on the domain name.
-
hashCode
public int hashCode()
There is one queue per domain, so hashcode is based on the domain name.
-
getQueueId
public String getQueueId()
-
getQueueSize
public long getQueueSize()
-
-