|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object dk.netarkivet.harvester.harvesting.monitor.StartedJobInfo
public class StartedJobInfo
This class is a simple bean storing information about a started job. This class is a persistent entity as per Berkeley DB JE DPL API.
Nested Class Summary | |
---|---|
static class |
StartedJobInfo.Criteria
list of the compare criteria. |
Constructor Summary | |
---|---|
StartedJobInfo()
Needed by BDB DPL. |
|
StartedJobInfo(java.lang.String harvestName,
long jobId)
Instantiates all readable fields with default values. |
Method Summary | |
---|---|
static StartedJobInfo |
build(CrawlProgressMessage msg)
Updates the members from a CrawlProgressMessage instance. |
void |
chooseCompareCriteria(StartedJobInfo.Criteria criteria)
set the criteria used in the compareTo method that way we can decide how to sort StartedJobInfo |
int |
compareTo(StartedJobInfo o)
|
long |
getActiveQueuesCount()
|
int |
getActiveToeCount()
|
long |
getAlertsCount()
|
double |
getCurrentProcessedDocsPerSec()
|
long |
getCurrentProcessedKBPerSec()
|
long |
getDownloadedFilesCount()
|
java.lang.Long |
getElapsedSeconds()
|
java.lang.String |
getElapsedTime()
|
long |
getExhaustedQueuesCount()
|
java.lang.String |
getHarvestName()
|
java.lang.String |
getHostName()
|
java.lang.String |
getHostUrl()
|
long |
getJobId()
|
double |
getProcessedDocsPerSec()
|
long |
getProcessedKBPerSec()
|
double |
getProgress()
|
long |
getQueuedFilesCount()
|
long |
getRetiredQueuesCount()
|
CrawlProgressMessage.CrawlStatus |
getStatus()
|
java.util.Date |
getTimestamp()
|
long |
getTotalQueuesCount()
|
void |
setActiveQueuesCount(long activeQueuesCount)
|
void |
setActiveToeCount(int activeToeCount)
|
void |
setAlertsCount(long alertsCount)
|
void |
setCurrentProcessedDocsPerSec(double currentProcessedDocsPerSec)
|
void |
setCurrentProcessedKBPerSec(long currentProcessedKBPerSec)
|
void |
setDownloadedFilesCount(long downloadedFilesCount)
|
void |
setElapsedSeconds(long elapsedSeconds)
|
void |
setExhaustedQueuesCount(long exhaustedQueuesCount)
|
void |
setHostUrl(java.lang.String hostUrl)
|
void |
setProcessedDocsPerSec(double processedDocsPerSec)
|
void |
setProcessedKBPerSec(long processedKBPerSec)
|
void |
setProgress(double progress)
|
void |
setQueuedFilesCount(long queuedFilesCount)
|
void |
setRetiredQueuesCount(long retiredQueuesCount)
|
void |
setStatus(CrawlProgressMessage.CrawlStatus status)
|
void |
setTimestamp(java.util.Date timestamp)
|
void |
setTotalQueuesCount(long totalQueuesCount)
|
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public StartedJobInfo()
public StartedJobInfo(java.lang.String harvestName, long jobId)
harvestName
- the name of the harvestjobId
- the ID of the jobMethod Detail |
---|
public long getJobId()
public java.lang.String getHarvestName()
public java.util.Date getTimestamp()
public java.lang.String getHostName()
public java.lang.String getHostUrl()
public double getProgress()
public long getQueuedFilesCount()
public long getTotalQueuesCount()
public long getActiveQueuesCount()
public long getRetiredQueuesCount()
public long getExhaustedQueuesCount()
public java.lang.String getElapsedTime()
public java.lang.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 java.lang.NullPointerException
compareTo
in interface java.lang.Comparable<StartedJobInfo>
java.lang.NullPointerException
public void chooseCompareCriteria(StartedJobInfo.Criteria criteria)
criteria
- the criteria we want to usepublic java.lang.String toString()
toString
in class java.lang.Object
public static StartedJobInfo build(CrawlProgressMessage msg)
CrawlProgressMessage
instance.
msg
- the CrawlProgressMessage
to process.public void setHostUrl(java.lang.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(java.util.Date timestamp)
timestamp
- the timestamp to setpublic void setRetiredQueuesCount(long retiredQueuesCount)
retiredQueuesCount
- the retiredQueuesCount to set
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |