@Persistent public class FrontierReportLine extends Object implements Serializable, Comparable<FrontierReportLine>
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.
Modifier | Constructor and Description |
---|---|
|
FrontierReportLine()
Default empty constructor.
|
protected |
FrontierReportLine(FrontierReportLine original)
Builds a cloned line.
|
Modifier and Type | Method and 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() |
String |
getQueueId()
Returns the queue's unique identifier.
|
long |
getQueueSize()
Returns the queue size.
|
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 |
setSessionBalance(long sessionBalance) |
void |
setTotalBudget(long totalBudget) |
void |
setTotalEnqueues(long totalEnqueues) |
void |
setTotalSpend(long totalSpend) |
void |
setWakeTime(String wakeTime) |
public FrontierReportLine()
protected FrontierReportLine(FrontierReportLine original)
original
- the line to clonepublic String getDomainName()
public void setDomainName(String domainName)
domainName
- the domainName to setpublic long getCurrentSize()
public void setCurrentSize(long currentSize)
currentSize
- the currentSize to setpublic long getTotalEnqueues()
public void setTotalEnqueues(long totalEnqueues)
totalEnqueues
- the totalEnqueues to setpublic long getSessionBalance()
public void setSessionBalance(long sessionBalance)
sessionBalance
- the sessionBalance to setpublic double getLastCost()
public void setLastCost(double lastCost)
lastCost
- the lastCost to setpublic double getAverageCost()
public void setAverageCost(double averageCost)
averageCost
- the averageCost to setpublic String getLastDequeueTime()
public void setLastDequeueTime(String lastDequeueTime)
lastDequeueTime
- the lastDequeueTime to setpublic String getWakeTime()
public void setWakeTime(String wakeTime)
wakeTime
- the wakeTime to setpublic long getTotalSpend()
public void setTotalSpend(long totalSpend)
totalSpend
- the totalSpend to setpublic long getTotalBudget()
public void setTotalBudget(long totalBudget)
totalBudget
- the totalBudget to setpublic long getErrorCount()
public void setErrorCount(long errorCount)
errorCount
- the errorCount to setpublic String getLastPeekUri()
public void setLastPeekUri(String lastPeekUri)
lastPeekUri
- the lastPeekUri to setpublic String getLastQueuedUri()
public void setLastQueuedUri(String lastQueuedUri)
lastQueuedUri
- the lastQueuedUri to setpublic int compareTo(FrontierReportLine l)
compareTo
in interface Comparable<FrontierReportLine>
public boolean equals(Object obj)
public int hashCode()
public String getQueueId()
public long getQueueSize()
Copyright © 2005–2015 The Royal Danish Library, the Danish State and University Library, the National Library of France and the Austrian National Library.. All rights reserved.