public class StartedJobInfo extends Object implements Comparable<StartedJobInfo>
This class is a persistent entity as per Berkeley DB JE DPL API.
Modifier and Type | Class and Description |
---|---|
static class |
StartedJobInfo.Criteria
list of the compare criteria.
|
Constructor and Description |
---|
StartedJobInfo()
Needed by BDB DPL.
|
StartedJobInfo(String harvestName,
long jobId)
Instantiates all readable fields with default values.
|
public StartedJobInfo()
public StartedJobInfo(String harvestName, long jobId)
harvestName
- the name of the harvestjobId
- the ID of the jobpublic long getJobId()
public String getHarvestName()
public Date getTimestamp()
public String getHostName()
public String getHostUrl()
public double getProgress()
public long getQueuedFilesCount()
public long getTotalQueuesCount()
public long getActiveQueuesCount()
public long getRetiredQueuesCount()
public long getExhaustedQueuesCount()
public String getElapsedTime()
public Long getElapsedSeconds()
public long getAlertsCount()
public long getDownloadedFilesCount()
public long getCurrentProcessedKBPerSec()
public long getProcessedKBPerSec()
public double getCurrentProcessedDocsPerSec()
public double getProcessedDocsPerSec()
public int getActiveToeCount()
public CrawlProgressMessage.CrawlStatus getStatus()
CrawlProgressMessage.CrawlStatus
public int compareTo(StartedJobInfo o) throws NullPointerException
compareTo
in interface Comparable<StartedJobInfo>
NullPointerException
public void chooseCompareCriteria(StartedJobInfo.Criteria criteria)
criteria
- the criteria we want to usepublic static StartedJobInfo build(CrawlProgressMessage msg)
CrawlProgressMessage
instance.msg
- the CrawlProgressMessage
to process.public void setHostUrl(String hostUrl)
hostUrl
- the hostUrl to setpublic void setProgress(double progress)
progress
- the progress to setpublic void setQueuedFilesCount(long queuedFilesCount)
queuedFilesCount
- the queuedFilesCount to setpublic void setDownloadedFilesCount(long downloadedFilesCount)
downloadedFilesCount
- the downloadedFilesCount to setpublic void setTotalQueuesCount(long totalQueuesCount)
totalQueuesCount
- the totalQueuesCount to setpublic void setActiveQueuesCount(long activeQueuesCount)
activeQueuesCount
- the activeQueuesCount to setpublic void setExhaustedQueuesCount(long exhaustedQueuesCount)
exhaustedQueuesCount
- the exhaustedQueuesCount to setpublic void setElapsedSeconds(long elapsedSeconds)
elapsedSeconds
- the elapsedSeconds to setpublic void setCurrentProcessedKBPerSec(long currentProcessedKBPerSec)
currentProcessedKBPerSec
- the currentProcessedKBPerSec to setpublic void setProcessedKBPerSec(long processedKBPerSec)
processedKBPerSec
- the processedKBPerSec to setpublic void setCurrentProcessedDocsPerSec(double currentProcessedDocsPerSec)
currentProcessedDocsPerSec
- the currentProcessedDocsPerSec to setpublic void setProcessedDocsPerSec(double processedDocsPerSec)
processedDocsPerSec
- the processedDocsPerSec to setpublic void setActiveToeCount(int activeToeCount)
activeToeCount
- the activeToeCount to setpublic void setAlertsCount(long alertsCount)
alertsCount
- the alertsCount to setpublic void setStatus(CrawlProgressMessage.CrawlStatus status)
status
- the status to setpublic void setTimestamp(Date timestamp)
timestamp
- the timestamp to setpublic void setRetiredQueuesCount(long retiredQueuesCount)
retiredQueuesCount
- the retiredQueuesCount to setCopyright © 2005–2016 The Royal Danish Library, the Danish State and University Library, the National Library of France and the Austrian National Library.. All rights reserved.